mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
21 lines
256 B
Ruby
21 lines
256 B
Ruby
![]() |
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
|