mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
Add missing file
This commit is contained in:
parent
eea4c866a6
commit
719ddbf808
1 changed files with 13 additions and 0 deletions
13
spec/support/samples/decorator_with_special_methods.rb
Executable file
13
spec/support/samples/decorator_with_special_methods.rb
Executable file
|
@ -0,0 +1,13 @@
|
|||
class DecoratorWithSpecialMethods < Draper::Base
|
||||
def to_param
|
||||
"foo"
|
||||
end
|
||||
|
||||
def id
|
||||
1337
|
||||
end
|
||||
|
||||
def errors
|
||||
["omg errors!"]
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue