lib/dynamoid/document.rb in dynamoid-0.7.1 vs lib/dynamoid/document.rb in dynamoid-1.0.0

- old
+ new

@@ -11,11 +11,11 @@ class_attribute :options, :read_only_attributes, :base_class self.options = {} self.read_only_attributes = [] self.base_class = self - Dynamoid::Config.included_models << self + Dynamoid.included_models << self end module ClassMethods # Set up table options, including naming it whatever you want, setting the id key, and manually overriding read and # write capacity. @@ -59,10 +59,10 @@ # Returns the number of items for this class. # # @since 0.6.1 def count - Dynamoid::Adapter::AwsSdk.count(table_name) + Dynamoid.adapter.count(table_name) end # Initialize a new object and immediately save it to the database. # # @param [Hash] attrs Attributes with which to create the object.