Sha256: 14a5ad6848f575e95fc4a3ce8b5b59c71282f234eb51f83bde069fec8dcb6c48
Contents?: true
Size: 307 Bytes
Versions: 5
Compression:
Stored size: 307 Bytes
Contents
class Store < ActiveRecord::Base belongs_to :storable, polymorphic: true, touch: true serialize :value validates :collection, :name, presence: true validates :name, uniqueness: { case_sensitive: false, scope: [:collection, :storable_type, :storable_id] } end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
udongo-1.0.4 | app/models/store.rb |
udongo-1.0.3 | app/models/store.rb |
udongo-1.0.2 | app/models/store.rb |
udongo-1.0.1 | app/models/store.rb |
udongo-1.0.0 | app/models/store.rb |