Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F887740
nested_form.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 10, 4:47 AM
Size
826 B
Mime Type
text/x-ruby
Expires
Tue, Aug 12, 4:47 AM (9 h, 10 m)
Engine
blob
Format
Raw Data
Handle
231885
Attached To
rARCHIVING archiving
nested_form.rb
View Options
begin
require
'nested_form/builder_mixin'
module
BootstrapForm
class
NestedFormBuilder
<
::
BootstrapForm
::
FormBuilder
include
::
NestedForm
::
BuilderMixin
end
end
module
BootstrapForm
module
Helpers
module
NestedForm
def
bootstrap_nested_form_for
(
object
,
options
=
{},
&
block
)
options
.
reverse_merge!
({
builder
:
BootstrapForm
::
NestedFormBuilder
})
bootstrap_form_for
(
object
,
options
)
do
|
f
|
capture
(
f
,
&
block
)
.
to_s
<<
after_nested_form_callbacks
end
end
end
end
end
rescue
LoadError
module
BootstrapForm
module
Helpers
module
NestedForm
def
bootstrap_nested_form_for
(
object
,
options
=
{},
&
block
)
raise
'nested_forms was not found. Is it in your Gemfile?'
end
end
end
end
end
Event Timeline
Log In to Comment