Skip to content

Commit

Permalink
replace deprecated class_inheritable_* methods with class_attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Shabanov committed Jan 3, 2011
1 parent 8525d00 commit 478c069
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/inherited_resources/base.rb
Expand Up @@ -29,11 +29,9 @@ def self.inherit_resources(base)
:parent_url, :parent_path, :resource, :collection, :resource_class, :association_chain,
:resource_instance_name, :resource_collection_name

base.with_options :instance_writer => false do |c|
c.class_inheritable_accessor :resource_class
c.class_inheritable_array :parents_symbols
c.class_inheritable_hash :resources_configuration
end
self.class_attribute :resource_class, :parents_symbols, :resources_configuration,
:instance_writer => false
undef :resource_class?, :parents_symbols?, :resources_configuration?

protected :resource_class, :parents_symbols, :resources_configuration
end
Expand Down

0 comments on commit 478c069

Please sign in to comment.