Sha256: 6a6e4a6911ffcb6dba21142aa2af3c1258ed06119bffe567969f6b1d2a991308
Contents?: true
Size: 763 Bytes
Versions: 1
Compression:
Stored size: 763 Bytes
Contents
module RailsAdminSettings module RailsAdminConfig def self.included(base) rails_admin do navigation_label t('admin.settings.label') object_label_method do :key end list do if Object.const_defined?('RailsAdminToggleable') field :enabled, :toggle else field :enabled end field :key field :type end edit do field :enabled field :raw do partial "setting_value" end field :key do read_only true end field :type do read_only true end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_admin_settings-0.1.0 | lib/rails_admin_settings/rails_admin_config.rb |