Commit Graph

6 Commits (c3f57188ae9bf48de5dd987cc1fcf50deab241a6)

Author SHA1 Message Date
Eugen Rochko 8069fd636b
Remove intermediary arrays when creating hash maps from results ()
Jakub Mendyk 6cb3514d64 Add ability to change an instance default theme from the administration panel () ()
* Add default_settings class method to ScopedSettings

ScopedSettings was extended to use value of unscoped setting instead of
only using defaults set in config/settings.yml for selected settings.
This adds possibility for admins to set default values of users' settings,
for example default theme (as requested in ).

* Add ability to change an instance default theme

Closes 
alpaca-tc 08dce5e607 Refactor Setting ()
* @object is not needed

* Remove unneeded dependencies

* Do not call private method

* Prefer #respond_to_missing? over #respond_to?

`#respond_to?` doesn't support `User.settings.method(:method_name)`

* Use find_or_initialize_by instead of
masarakki 3b59f9c6c2 fix-cache-returns-nil ()
Eugen Rochko e25170f960 Add extended about page stub
Eugen Rochko 2939e9898b Extend rails-settings-cached to merge db-saved hash values with defaults