Sha256: e47caa5bd71ff28fddb460b1e3396406b45b4d9dc1ce52b8bd97c1b3968ab390

Contents?: true

Size: 288 Bytes

Versions: 9

Compression:

Stored size: 288 Bytes

Contents

class ChildResource < ActiveRecord::Base
  acts_as_versionable nested_within: :parent_resource
  
  belongs_to :parent_resource
  has_many :grand_child_resources

  accepts_nested_attributes_for :grand_child_resources

  validates :r_float, numericality: {less_than_or_equal_to: 100}
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
rubber_stamp-0.13.0 spec/dummy/app/models/child_resource.rb
controlled_versioning-0.12.0 spec/dummy/app/models/child_resource.rb
controlled_versioning-0.11.0 spec/dummy/app/models/child_resource.rb
controlled_versioning-0.10.0 spec/dummy/app/models/child_resource.rb
controlled_versioning-0.9.2 spec/dummy/app/models/child_resource.rb
controlled_versioning-0.9.1 spec/dummy/app/models/child_resource.rb
controlled_versioning-0.9.0 spec/dummy/app/models/child_resource.rb
controlled_versioning-0.8.0 spec/dummy/app/models/child_resource.rb
controlled_versioning-0.7.2 spec/dummy/app/models/child_resource.rb