ここにデコレータがあります
app/decorators/campaign_decorator.rb
class CampaignDecorator < Draper::Decorator
delegate_all Campaign::Campaign
def created_at
helpers.content_tag :span, class: 'time' do
object.created_at.strftime("%a %m/%d/%y")
end
end
def custom_method
'hello there!'
end
end
私が呼び出すCampaignDecorator.custom_method
と、メソッドが見つかりません。CampaignDecorator.first.created_at
フォーマットされていない日付も返します。
何が欠けているのか誰か教えてください。