class ActionBlocks::FormSectionBuilder
Section
Attributes
form[RW]
Public Instance Methods
before_build(parent, *args)
click to toggle source
# File lib/action_blocks/builders/form_builder.rb, line 66 def before_build(parent, *args) @form = parent @title = args[0].to_s.titleize @width = 4 @label = @field.to_s.titleize end
hashify(user)
click to toggle source
# File lib/action_blocks/builders/form_builder.rb, line 73 def hashify(user) { title: @title, width: @width, fields: @fields.map {|f| f.hashify(user)}, } end