mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
allow using orm_instance without invoking orm_class first in generators
This commit is contained in:
@@ -73,7 +73,7 @@ module Rails
|
||||
|
||||
# Initialize ORM::Generators::ActiveModel to access instance methods.
|
||||
def orm_instance(name=singular_table_name)
|
||||
@orm_instance ||= @orm_class.new(name)
|
||||
@orm_instance ||= orm_class.new(name)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user