Skip to content

Commit

Permalink
Fixed migration_generation Join bug
Browse files Browse the repository at this point in the history
  • Loading branch information
codingpains authored and tomeric committed Apr 30, 2010
1 parent 2aa1cbc commit 976cab3
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -11,7 +11,7 @@ def self.orm
end

def self.source_root
File.join(File.dirname(__FILE__), 'templates', orm)
File.join(File.dirname(__FILE__), 'templates', (orm.to_s unless orm.class.eql?(String)) )
end

def self.orm_has_migration?
Expand All @@ -29,3 +29,4 @@ def create_migration_file
end
end
end

0 comments on commit 976cab3

Please sign in to comment.