Sha256: f2486633bdb3b6816cc36db2f13112094b462a6bb252c5f26bbb638ca41bd419

Contents?: true

Size: 426 Bytes

Versions: 9

Compression:

Stored size: 426 Bytes

Contents

module Admin
  module Setting
    extend ActiveSupport::Concern

    included do
      rails_admin do
        navigation_label I18n.t('cms.setting.navigation')
        label I18n.t('cms.setting.one')
        label_plural I18n.t('cms.setting.other')

        edit do
          field :name do
            read_only true
          end
          field :value, :string
          field :unit
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_admin_cms-0.1.1 app/models/admin/setting.rb
rails_admin_cms-0.0.9 app/models/admin/setting.rb
rails_admin_cms-0.0.7 app/models/admin/setting.rb
rails_admin_cms-0.0.6 app/models/admin/setting.rb
rails_admin_cms-0.0.5 app/models/admin/setting.rb
rails_admin_cms-0.0.4 app/models/admin/setting.rb
rails_admin_cms-0.0.3 app/models/admin/setting.rb
rails_admin_cms-0.0.2 app/models/admin/setting.rb
rails_admin_cms-0.0.1 app/models/admin/setting.rb