Sha256: fd4cf083d4779c96f114193d997c7c831236783b6c4a04e62a4f8762b7af18cb
Contents?: true
Size: 523 Bytes
Versions: 14
Compression:
Stored size: 523 Bytes
Contents
module CmAdmin module Models class Field attr_accessor :field_name, :label, :header, :field_type, :format, :precision, :helper_method, :preview, :custom_link, :precision, :prefix, :suffix, :tag_class def initialize(field_name, attributes = {}) @field_name = field_name set_default_values attributes.each do |key, value| self.send("#{key.to_s}=", value) end end def set_default_values self.tag_class = {} end end end end
Version data entries
14 entries across 14 versions & 1 rubygems