Browse files

replace class_inheritable_attribute with class_attributes, because it…

… deprecated in Rails 3.1
  • Loading branch information...
1 parent 25f68c1 commit 40d0428094146f6e9487f3b0fd1518ff222a7f1a @ptzn ptzn committed Aug 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/completeness-fu/active_model_additions.rb
View
4 lib/completeness-fu/active_model_additions.rb
@@ -12,7 +12,7 @@ def self.define_completeness_scoring(&checks_block)
raise CompletenessFuError, 'please make sure ActiveModel::Naming is included so completeness_scoring can translate messages correctly, or that you implement a model_name method.'
end
- class_inheritable_array :completeness_checks
+ class_attribute :completeness_checks
cattr_accessor :default_weighting
cattr_accessor :model_weightings
@@ -123,4 +123,4 @@ def cache_completeness_score(score_type)
end
-end
+end

0 comments on commit 40d0428

Please sign in to comment.