Skip to content

Releases: ledermann/rails-settings

v2.2.0

30 Jan 06:58
Compare
Choose a tag to compare
  • Added RailsSettings::Base#to_settings_hash (thanks to @mguymon)

v2.1.0

30 Jan 06:57
Compare
Choose a tag to compare
  • Support for Rails 4
  • Removed support for Ruby 1.8.7

v2.0.3

18 Jul 07:03
Compare
Choose a tag to compare
  • Fixed bug with setting getter when settings are booleans and default is true (thanks to @mduong)

v2.0.2

18 Jul 07:04
Compare
Choose a tag to compare
  • Changed database schema to allow NULL for column value to fix serialization bug with MySQL. Thanks to @steventen for pointing this out in issue #31.

    Important: The migration generator of version 2.0.0 and 2.0.1 was broken. If you use MySQL it's required to update your database schema like this:

      class FixSettings < ActiveRecord::Migration
        def up
          change_column :settings, :value, :text, :null => true
        end
    
        def down
          change_column :settings, :value, :text, :null => false
        end
      end

v2.0.1

18 Jul 07:04
Compare
Choose a tag to compare
  • Added mass assignment security by protecting all regular attributes

v2.0.0

18 Jul 07:04
Compare
Choose a tag to compare
  • Complete rewrite
  • New DSL (see README.md)
  • No global defaults anymore. Defaults are defined per ActiveRecord class
  • No more storing defaults in the database
  • Rails >= 3.1 needed (Rails 2.3 not supported anymore)
  • Threadsafe
  • Switched to RSpec for testing

v1.2.1

18 Jul 07:04
Compare
Choose a tag to compare
  • Quick and dirty fix for design flaw in target scope implementation (thanks to Yves-Eric Martin)
  • Use Thread.current instead of cattr_accessor to be threadsafe
  • Code cleanup

v1.2.0

18 Jul 07:04
Compare
Choose a tag to compare
  • Added model-level settings (thanks to Jim Ryan)

v1.1.0

18 Jul 07:05
Compare
Choose a tag to compare
  • Added caching (thanks to Matthew McEachen)

v1.0.1

18 Jul 07:05
Compare
Choose a tag to compare
  • Gemspec: Fixed missing dependency