Sha256: ecb19499ac00f2da180cfe7d3803639781d24ac98d1911cb4d4b1e4cc984a317

Contents?: true

Size: 216 Bytes

Versions: 9

Compression:

Stored size: 216 Bytes

Contents

module Viewable
  class SelectPresenter < ViewablePresenter
    def option
      [label, m.value]
    end

    def label
      if m.label.blank?
        m.value
      else
        m.label
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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