Sha256: 0079d296d177824ab919b1f9b2604c6e64a8a29dae3a906e0a920ff4f0ac3337

Contents?: true

Size: 205 Bytes

Versions: 11

Compression:

Stored size: 205 Bytes

Contents

module ActiveDynamic
  class Attribute < ActiveRecord::Base
    belongs_to :customizable, polymorphic: true

    self.table_name = 'active_dynamic_attributes'
    validates :name, presence: true
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
active_dynamic-0.5.9 lib/active_dynamic/attribute.rb
active_dynamic-0.5.8 lib/active_dynamic/attribute.rb
active_dynamic-0.5.7 lib/active_dynamic/attribute.rb
active_dynamic-0.5.6 lib/active_dynamic/attribute.rb
active_dynamic-0.5.5 lib/active_dynamic/attribute.rb
active_dynamic-0.5.4 lib/active_dynamic/attribute.rb
active_dynamic-0.5.3 lib/active_dynamic/attribute.rb
active_dynamic-0.5.2 lib/active_dynamic/attribute.rb
active_dynamic-0.5.1 lib/active_dynamic/attribute.rb
active_dynamic-0.5.0 lib/active_dynamic/attribute.rb
active_dynamic-0.4.0 lib/active_dynamic/attribute.rb