Skip to content

dixalex/activeadmin_settings_cached

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Activeadmin Settings Cached

Gem for Rails provides ui interface for rails-settings-cached gem in Active Admin

Installation

Add this line to your application's Gemfile:

gem 'activeadmin_settings_cached'

And then execute:

$ bundle

Create you settings model:

$ rails g settings Settings
$ bundle exec rake db:migrate

Add route in config/routes.rb

ActiveAdmin.routes(self)
mount ActiveadminSettingsCached::Engine => '/admin' 

And configure you default values in model Settings like this:

class Settings < RailsSettings::CachedSettings
   defaults[:my_awesome_settings] = 'This is my settings'
end

And in your appication admin avaliable new page with this settings

Localization

You can localize settings keys in local file

en:
  settings:
    attributes:
      my_awesome_settings:
        name: 'My Awesome Lolaized Setting'

For how use Settings in you application see documentation fo rails-settings-cached gem https://github.com/huacnlee/rails-settings-cached

About

UI interface for rails-settings-cached in active admin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 78.2%
  • HTML 21.8%