lib/morph.rb in morph-0.3.3 vs lib/morph.rb in morph-0.3.4

- old
+ new

@@ -16,11 +16,11 @@ require 'activesupport' end end module Morph - VERSION = "0.3.3" unless defined? Morph::VERSION + VERSION = "0.3.4" unless defined? Morph::VERSION class << self def generate_migrations object, options={} options[:ignore] ||= [] options[:belongs_to_id] ||= '' @@ -272,10 +272,10 @@ send("#{attribute}=".to_sym, value) end end def morph_attributes - attributes = self.class.morph_methods.inject({}) do |hash, attribute| + attributes = self.class.morph_attributes.inject({}) do |hash, attribute| unless attribute =~ /=\Z/ symbol = attribute.to_sym value = send(symbol) value.each do |key, v|