app/models/fields/field.rb in fat_free_crm-0.12.3 vs app/models/fields/field.rb in fat_free_crm-0.13.0

- old
+ new

@@ -31,12 +31,12 @@ serialize :collection, Array serialize :settings, HashWithIndifferentAccess belongs_to :field_group - scope :core_fields, where(:type => 'CoreField') - scope :custom_fields, where("type != 'CoreField'") - scope :without_pairs, where(:pair_id => nil) + scope :core_fields, -> { where(:type => 'CoreField') } + scope :custom_fields, -> { where("type != 'CoreField'") } + scope :without_pairs, -> { where(:pair_id => nil) } delegate :klass, :klass_name, :klass_name=, :to => :field_group BASE_FIELD_TYPES = { 'string' => {:klass => 'CustomField', :type => 'string'},