class ActionBlocks::DateFieldBuilder
Public Instance Methods
before_build(parent, *args)
click to toggle source
Calls superclass method
ActionBlocks::FieldBlock#before_build
# File lib/action_blocks/builders/model_builder.rb, line 538 def before_build(parent, *args) super(parent, *args) @field_type = 'date' end
hashify(user)
click to toggle source
# File lib/action_blocks/builders/model_builder.rb, line 543 def hashify(user) { type: :date, id: @id } end