Sha256: af60e1f3bc01947eb6bdd9f7069b6d37625b48076cc0408e09298678857bcd4f
Contents?: true
Size: 357 Bytes
Versions: 1
Compression:
Stored size: 357 Bytes
Contents
# inspired by https://github.com/activeadmin/activeadmin/blob/a180c76f17480715948bff2ead827f338d95a835/spec/support/templates/post_decorator.rb class ArticlePresenter < DelegateClass(Article) include ActiveadminPoroDecorator def hello "Hello, #{title}" end def link_title helpers.link_to(id, url_helpers.admin_article_path(self)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-poro-decorator-0.2.0 | spec/support/dummy/app/presenters/article_presenter.rb |