lib/osm/term.rb in osm-1.2.5 vs lib/osm/term.rb in osm-1.2.6

- old
+ new

@@ -17,10 +17,12 @@ attribute :section_id, :type => Integer attribute :name, :type => String attribute :start, :type => Date attribute :finish, :type => Date - attr_accessible :id, :section_id, :name, :start, :finish + if ActiveModel::VERSION::MAJOR < 4 + attr_accessible :id, :section_id, :name, :start, :finish + end validates_numericality_of :id, :only_integer=>true, :greater_than=>0 validates_numericality_of :section_id, :only_integer=>true, :greater_than=>0 validates_presence_of :name validates_presence_of :start