Sha256: aec8884d716366c4672480ca2165b196900fe47c1429fd84f97ce98b62062427

Contents?: true

Size: 245 Bytes

Versions: 91

Compression:

Stored size: 245 Bytes

Contents

class Image
  attr_reader :name

  def initialize(name)
    @name = name
  end

  def self.demongoize(value)
    Image.new(value)
  end

  def mongoize
    name
  end

  def hash_is_hash
    {}.is_a?(Hash)
  end
end

class Thumbnail < Image
end

Version data entries

91 entries across 86 versions & 8 rubygems

Version Path
mongoid-6.0.1 spec/app/models/image.rb
mongoid-5.1.5 spec/app/models/image.rb
mongoid-6.0.0 spec/app/models/image.rb
mongoid-5.1.4 spec/app/models/image.rb
mongoid-6.0.0.rc0 spec/app/models/image.rb
mongoid-6.0.0.beta spec/app/models/image.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-4.0.2/spec/app/models/image.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-5.1.3/spec/app/models/image.rb
mongoid-5.1.3 spec/app/models/image.rb
mongoid-5.1.2 spec/app/models/image.rb
mongoid-5.1.1 spec/app/models/image.rb
mongoid-5.1.0 spec/app/models/image.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/mongoid-5.0.2/spec/app/models/image.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongoid-5.0.1/spec/app/models/image.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongoid-5.0.2/spec/app/models/image.rb
mongoid-5.0.2 spec/app/models/image.rb
mongoid-5.0.1 spec/app/models/image.rb
mongoid-paranoia-1.1.0 spec/app/models/image.rb
mongoid-5.0.0 spec/app/models/image.rb
mongoid-5.0.0.rc0 spec/app/models/image.rb