app/models/feature.rb in spatial_features-3.4.8 vs app/models/feature.rb in spatial_features-3.5.1
- old
+ new
@@ -9,11 +9,9 @@
has_one :aggregate_feature, lambda { |feature| where(:spatial_model_type => feature.spatial_model_type) }, :foreign_key => :spatial_model_id, :primary_key => :spatial_model_id
scope :source_identifier, lambda {|source_identifier| where(:source_identifier => source_identifier) if source_identifier.present? }
- validates_inclusion_of :feature_type, :in => FEATURE_TYPES
-
before_save :truncate_name
after_save :refresh_aggregate, if: :automatically_refresh_aggregate?
attr_accessor :importable_image_paths # :nodoc: