Sha256: 64633cdcdc2b1245721be22cd435d2b14454cc8240ff55cfa2b64da188f84535

Contents?: true

Size: 595 Bytes

Versions: 11

Compression:

Stored size: 595 Bytes

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------

#
# Register CustomFields when Field class is loaded
ActiveSupport.on_load(:fat_free_crm_field) do # self == Field
  self.register(:as => 'date_pair', :klass => 'CustomFieldDatePair', :type => 'date')
  self.register(:as => 'datetime_pair', :klass => 'CustomFieldDatetimePair', :type => 'timestamp')
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 lib/fat_free_crm/custom_fields.rb
fat_free_crm-0.13.5 lib/fat_free_crm/custom_fields.rb
fat_free_crm-0.13.4 lib/fat_free_crm/custom_fields.rb
fat_free_crm-0.13.3 lib/fat_free_crm/custom_fields.rb
fat_free_crm-0.13.2 lib/fat_free_crm/custom_fields.rb
fat_free_crm-0.12.3 lib/fat_free_crm/custom_fields.rb
fat_free_crm-0.12.2 lib/fat_free_crm/custom_fields.rb
fat_free_crm-0.13.1 lib/fat_free_crm/custom_fields.rb
fat_free_crm-0.12.1 lib/fat_free_crm/custom_fields.rb
fat_free_crm-0.13.0 lib/fat_free_crm/custom_fields.rb
fat_free_crm-0.12.0 lib/fat_free_crm/custom_fields.rb