Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
a938d582
Commit
a938d582
authored
Jan 16, 2012
by
Holger Just
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#780] Clarify deprecation of Setting.clear_cache
parent
33a8baf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
setting.rb
app/models/setting.rb
+5
-1
No files found.
app/models/setting.rb
View file @
a938d582
...
...
@@ -140,6 +140,7 @@ class Setting < ActiveRecord::Base
# Deprecation Warning: This method is no longer available. There is no
# replacement.
def
self
.
check_cache
# DEPRECATED SINCE 3.0.0beta2
ActiveSupport
::
Deprecation
.
warn
"The Setting.check_cache method is "
+
"deprecated and will be removed in the future. There should be no "
+
"replacement for this functionality needed."
...
...
@@ -147,9 +148,12 @@ class Setting < ActiveRecord::Base
# Clears all of the Setting caches
def
self
.
clear_cache
# DEPRECATED SINCE 3.0.0beta2
ActiveSupport
::
Deprecation
.
warn
"The Setting.clear_cache method is "
+
"deprecated and will be removed in the future. There should be no "
+
"replacement for this functionality needed."
"replacement for this functionality needed. To sweep the whole "
+
"cache Rails.cache.clear may be used. To invalidate the Settings "
+
"only, you may use Setting.first.try(:touch)"
end
private
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment