lib/connection_manager/using.rb in connection_manager-0.3.1 vs lib/connection_manager/using.rb in connection_manager-0.3.2
- old
+ new
@@ -28,10 +28,10 @@
STR
dup_klass.class_eval <<-STR
class << self
def model_name
- '#{self.model_name}'
+ '#{self.name}'.constantize.model_name
end
end
STR
extend_dup_class(dup_klass,connection_class_name)