-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
From the readme, it says:
ActiveDecorator::ViewContext.run_with ApplicationController.new.view_context do
## perform some heavy jobs here
endHowever, what I did is the following
↪ rails runner 'ActiveDecorator::ViewContext.run_with(ApplicationController.new.view_context) { puts User.last.name_with_company }'
undefined method `name_with_company' for #<User:0x000000000b63ee70>
Did you mean? name_will_change!
but maually extend would work:
↪ rails runner 'u = User.last; u.extend UserDecorator; puts u.name_with_company'
Foo Bar
Am i missing sth?
Regards
Metadata
Metadata
Assignees
Labels
No labels