app/controllers/anoubis/etc/field.rb
##
# Return field properties for frontend application for actions 'edit', 'new'
# @param model [ActiveRecord] field's model
# @param action [Srting] current field action
# @return [Hash] field's properties for defined action
Return field properties for frontend application for actions 'edit', 'new'
Return field properties for frontend application for actions ' edit ' ' new '
def properties_forms (model, action)
        mod = model.new
        result = {
            id: self.key,
            title: model.human_attribute_name(self.key),
            type: self.type
        }
        result.merge!(self.send(Kernel.format('properties_forms_%s', self.type), model, action, mod))
        result
      end
def properties_forms ( model , action ) mod = model . new result = { id : self . key , title : model . human_attribute_name ( self . key ) , type : self . type } result . merge! ( self . send ( Kernel . format ( 'properties_forms_%s' , self . type ) , model , action , mod ) ) result end
Return field properties for frontend application for actions 'edit', 'new'
Return field properties for frontend application for actions ' edit ' ' new '
field's properties for defined action
field ' s properties for defined action
Hash
model
None
action
current field action
current field action