fixed #96, fixed generator for orms
This commit is contained in:
parent
0e437313fd
commit
74847f2d04
|
@ -4,6 +4,7 @@ module ActiveRecord
|
|||
include Rails::Generators::Migration
|
||||
source_root File.join(File.dirname(__FILE__), 'templates')
|
||||
|
||||
# FIX, why is this implementing rails behaviour?
|
||||
def self.next_migration_number(dirname)
|
||||
sleep 1
|
||||
if ActiveRecord::Base.timestamped_migrations
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# Use this hook to configure impressionist parameters
|
||||
Impressionist.setup do |config|
|
||||
#Impressionist.setup do |config|
|
||||
# Define ORM. Could be :active_record (default), :mongo_mapper or :mongoid
|
||||
# config.orm = :active_record
|
||||
end
|
||||
#end
|
||||
Impressionist.orm = :<%= options.orm if options.orm %>
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
# Define ORM. Could be :active_record (default) and :mongo_mapper
|
||||
#Impressionist.config.orm = :mongoid
|
||||
# Use this hook to configure impressionist parameters
|
||||
Impressionist.setup do |config|
|
||||
# Define ORM. Could be :active_record (default), :mongo_mapper or :mongoid
|
||||
# config.orm = :active_record
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue