Sha256: 27fd15fbcf67dbc12d5a387a5493e25344ba6ba2ddf2244ca4850f2e5967f565
Contents?: true
Size: 221 Bytes
Versions: 2
Compression:
Stored size: 221 Bytes
Contents
module ApplicationHelper def present(object, klass = nil) klass ||= "#{object.class}Presenter".constantize presenter = klass.new(object, self) yield presenter if block_given? return presenter end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
base_presenter-0.0.4 | lib/application_helper.rb |
base_presenter-0.0.3 | lib/application_helper.rb |