lib/dynamoid/document.rb in dynamoid-3.7.1 vs lib/dynamoid/document.rb in dynamoid-3.8.0

- old
+ new

@@ -15,16 +15,10 @@ Dynamoid.included_models << self unless Dynamoid.included_models.include? self end module ClassMethods - # @private - def table(options = {}) - self.options = options - super if defined? super - end - def attr_readonly(*read_only_attributes) self.read_only_attributes.concat read_only_attributes.map(&:to_s) end # Returns the read capacity for this table. @@ -75,14 +69,14 @@ options[:key] || :id end # Return the count of items for this class. # - # It returns aproximate value based on DynamoDB statistic. DynamoDB - # updates it periodicaly so the value can be no accurate. + # It returns approximate value based on DynamoDB statistic. DynamoDB + # updates it periodically so the value can be no accurate. # - # It's a reletivly cheap operation and doesn't read all the items in a + # It's a reletively cheap operation and doesn't read all the items in a # table. It makes just one HTTP request to DynamoDB. # # @return [Integer] items count in a table # @since 0.6.1 def count @@ -218,10 +212,10 @@ end # Check equality of two models. # # A model is equal to another model only if their primary keys (hash key - # and optionaly range key) are equal. + # and optionally range key) are equal. # # @return [true|false] # @since 0.2.0 def ==(other) if self.class.identity_map_on?