Sha256: 77318cab3ec54642678dbb42bda58040e65e192202ef43aefb73d753e2f8c33c

Contents?: true

Size: 206 Bytes

Versions: 28

Compression:

Stored size: 206 Bytes

Contents

class Event < ActiveRecord::Base
  validates_presence_of :name
  belongs_to :location

  def self.alchemy_resource_relations
    {
      location: {attr_method: 'name', attr_type: 'string'}
    }
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
alchemy_cms-3.3.0.rc1 spec/dummy/app/models/event.rb
alchemy_cms-3.2.1 spec/dummy/app/models/event.rb
alchemy_cms-3.1.3 spec/dummy/app/models/event.rb
lc_alchemy_cms-3.2.1 spec/dummy/app/models/event.rb
lc_alchemy_cms-3.2.0 spec/dummy/app/models/event.rb
alchemy_cms-3.2.0 spec/dummy/app/models/event.rb
alchemy_cms-3.2.0.rc1 spec/dummy/app/models/event.rb
alchemy_cms-3.2.0.beta spec/dummy/app/models/event.rb
alchemy_cms-3.1.1 spec/dummy/app/models/event.rb
alchemy_cms-3.0.4 spec/dummy/app/models/event.rb
alchemy_cms-3.1.0 spec/dummy/app/models/event.rb
alchemy_cms-3.1.0.rc3 spec/dummy/app/models/event.rb
alchemy_cms-3.1.0.rc2 spec/dummy/app/models/event.rb
alchemy_cms-3.1.0.rc1 spec/dummy/app/models/event.rb
alchemy_cms-3.1.0.beta6 spec/dummy/app/models/event.rb
alchemy_cms-3.1.0.beta5 spec/dummy/app/models/event.rb
alchemy_cms-3.1.0.beta4 spec/dummy/app/models/event.rb
alchemy_cms-3.0.3 spec/dummy/app/models/event.rb
alchemy_cms-3.1.0.beta3 spec/dummy/app/models/event.rb
alchemy_cms-3.1.0.beta2 spec/dummy/app/models/event.rb