lib/dynamoid/document.rb in dynamoid-1.3.0 vs lib/dynamoid/document.rb in dynamoid-1.3.1
- old
+ new
@@ -11,10 +11,10 @@
class_attribute :options, :read_only_attributes, :base_class
self.options = {}
self.read_only_attributes = []
self.base_class = self
- Dynamoid.included_models << self
+ Dynamoid.included_models << self unless Dynamoid.included_models.include? 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.