Module: CustomFields

Defined in:
lib/custom_fields/version.rb,
lib/custom_fields.rb,
lib/custom_fields/field.rb,
lib/custom_fields/source.rb,
lib/custom_fields/target.rb,
lib/custom_fields/types/date.rb,
lib/custom_fields/types/file.rb,
lib/custom_fields/types/tags.rb,
lib/custom_fields/types/text.rb,
lib/custom_fields/types/email.rb,
lib/custom_fields/types/float.rb,
lib/custom_fields/types/money.rb,
lib/custom_fields/types/select.rb,
lib/custom_fields/types/string.rb,
lib/custom_fields/types/boolean.rb,
lib/custom_fields/types/default.rb,
lib/custom_fields/types/integer.rb,
lib/custom_fields/target_helpers.rb,
lib/custom_fields/types/has_many.rb,
lib/custom_fields/types/date_time.rb,
lib/custom_fields/types/belongs_to.rb,
lib/custom_fields/types/many_to_many.rb,
lib/custom_fields/types/relationship_default.rb

Overview

:nodoc

Defined Under Namespace

Modules: Source, Target, TargetHelpers, Types Classes: Field

Constant Summary collapse

VERSION =
'2.3.0'
@@options =
{
  reserved_names:     Mongoid.destructive_fields + %w(id _id send class),
  default_currency:   'EUR'
}

Class Method Summary collapse

Class Method Details

.optionsObject



18
19
20
# File 'lib/custom_fields.rb', line 18

def self.options
  @@options
end

.options=(options) ⇒ Object



14
15
16
# File 'lib/custom_fields.rb', line 14

def self.options=(options)
  @@options.merge!(options)
end