Sha256: a7adf7e9eb2f4ea6c74f5495ddb113e47879ff88590cc2309f59c4b067bd67ae

Contents?: true

Size: 179 Bytes

Versions: 9

Compression:

Stored size: 179 Bytes

Contents

module Viewable
  class ImagePresenter < ViewablePresenter
    def path
      m.image
    end

    def url
      "#{h.request.base_url}#{path}" if path.present?
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_admin_cms-0.1.1 app/presenters/viewable/image_presenter.rb
rails_admin_cms-0.0.9 app/presenters/viewable/image_presenter.rb
rails_admin_cms-0.0.7 app/presenters/viewable/image_presenter.rb
rails_admin_cms-0.0.6 app/presenters/viewable/image_presenter.rb
rails_admin_cms-0.0.5 app/presenters/viewable/image_presenter.rb
rails_admin_cms-0.0.4 app/presenters/viewable/image_presenter.rb
rails_admin_cms-0.0.3 app/presenters/viewable/image_presenter.rb
rails_admin_cms-0.0.2 app/presenters/viewable/image_presenter.rb
rails_admin_cms-0.0.1 app/presenters/viewable/image_presenter.rb