Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed class_inheritable_accessor deprecation warning in Rails 3.1

  • Loading branch information...
commit 28ff9261ec4a4f1a936fa7348e895958ec1ccca8 1 parent 757491f
Eduardo authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 lib/mebla/mongoid/mebla.rb
View
16 lib/mebla/mongoid/mebla.rb
@@ -17,13 +17,13 @@ module Mebla
}
end
- class_inheritable_accessor :embedded_as
- class_inheritable_accessor :embedded_parent
- class_inheritable_accessor :embedded_parent_foreign_key
- class_inheritable_accessor :slingshot_mappings
- class_inheritable_accessor :search_fields
- class_inheritable_accessor :search_relations
- class_inheritable_accessor :whiny_indexing # set to true to raise errors if indexing fails
+ class_attribute :embedded_as
+ class_attribute :embedded_parent
+ class_attribute :embedded_parent_foreign_key
+ class_attribute :slingshot_mappings
+ class_attribute :search_fields
+ class_attribute :search_relations
+ class_attribute :whiny_indexing # set to true to raise errors if indexing fails
# make sure critical data remain read only
private_class_method :"search_fields=", :"slingshot_mappings=",
@@ -338,4 +338,4 @@ def raise_synchronization_exception(error)
end
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.