Sha256: 3c17e284bf4c6e394b01c79c0c526494e85c65a03540f7cab2622b7d3955ab27

Contents?: true

Size: 268 Bytes

Versions: 12

Compression:

Stored size: 268 Bytes

Contents

class User < ActiveRecord::Base
end

class Label < ActiveRecord::Base
end

class Issue < Superstore::Base
  string :description
  string :title

  before_create { self.description ||= 'funny' }

  has_many :labels

  def self.for_key key
    where_ids(key)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
superstore-2.4.3 test/support/models.rb
superstore-2.4.2 test/support/models.rb
superstore-2.4.1 test/support/models.rb
superstore-2.4.0 test/support/models.rb
superstore-2.3.0 test/support/models.rb
superstore-2.2.0 test/support/models.rb
superstore-2.1.3 test/support/models.rb
superstore-2.1.2 test/support/models.rb
superstore-2.1.1 test/support/models.rb
superstore-2.1.0 test/support/models.rb
superstore-2.0.1 test/support/models.rb
superstore-2.0.0 test/support/models.rb