Sha256: 451d0468a155f790a0919030245496789c60a987845e647a9f2fd540443484c5

Contents?: true

Size: 256 Bytes

Versions: 8

Compression:

Stored size: 256 Bytes

Contents

class Product < ActiveRecord::Base
  def self.find(id)
    return Product.new
  end
  
  def hello_world
    "Hello, World"
  end
  
  def goodnight_moon
    "Goodnight, Moon"
  end
  
  def title
    "Sample Title"
  end
  
  def block
    yield
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
draper-0.8.0 spec/samples/product.rb
draper-0.7.4 spec/samples/product.rb
draper-0.7.3 spec/samples/product.rb
draper-0.7.2 spec/samples/product.rb
draper-0.7.1 spec/samples/product.rb
draper-0.7.0 spec/samples/product.rb
draper-0.5.0 spec/samples/product.rb
draper-0.4.2 spec/samples/product.rb