Sha256: 877a79d66809eeb4c2465c7f9fc254ea629d9f2f37666dc655b2a25de3416805
Contents?: true
Size: 460 Bytes
Versions: 3
Compression:
Stored size: 460 Bytes
Contents
module ApplicationHelper def present(object, klass = nil) klass ||= "#{object.class}Presenter".constantize presenter = klass.new(object, self) if block_given? yield presenter else presenter.present() end end def application_name AppVersion.app_name end def app_name application_name end def asset_url(asset) "#{request.protocol}#{request.host_with_port}#{asset_path(asset)}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
your_platform-1.0.1 | app/helpers/application_helper.rb |
your_platform-1.0.0 | app/helpers/application_helper.rb |
your_platform-0.0.2 | app/helpers/application_helper.rb |