Skip to content

Commit

Permalink
Fixes an issue where RailsSettings::CachedSettings uses the deprecate…
Browse files Browse the repository at this point in the history
…d class RailsSettings::Settings (#96)
  • Loading branch information
adambutler authored and huacnlee committed Apr 11, 2016
1 parent 4c09f08 commit 7afaf4a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## 0.5.6

- Fixed inheritance of RailsSettings::CachedSettings to use RailsSettings::Base.

## 0.5.5

- Change generator command from `rails g settings` to `rails g settings:install`.
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
rails-settings-cached (0.5.5)
rails-settings-cached (0.5.6)
rails (>= 4.2.0)

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -16,7 +16,7 @@ of object. Strings, numbers, arrays, or any object.
Edit your Gemfile:

```ruby
gem 'rails-settings-cached', "~> 0.5.5"
gem 'rails-settings-cached', "~> 0.5.6"
```

Older Rails versions:
Expand Down
2 changes: 1 addition & 1 deletion lib/rails-settings/cached_settings.rb
@@ -1,5 +1,5 @@
module RailsSettings
class CachedSettings < Settings
class CachedSettings < Base
def rewrite_cache
Rails.cache.write(cache_key, value)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rails-settings/version.rb
@@ -1,7 +1,7 @@
module RailsSettings
class << self
def version
"0.5.5"
"0.5.6"
end
end
end

0 comments on commit 7afaf4a

Please sign in to comment.