Skip to content

Commit

Permalink
replace class_inheritable_attribute with class_attributes, because it…
Browse files Browse the repository at this point in the history
… deprecated in Rails 3.1
  • Loading branch information
ptzn committed Aug 8, 2011
1 parent 25f68c1 commit 40d0428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/completeness-fu/active_model_additions.rb
Expand Up @@ -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

Expand Down Expand Up @@ -123,4 +123,4 @@ def cache_completeness_score(score_type)

end

end
end

0 comments on commit 40d0428

Please sign in to comment.