Permalink
Browse files

restore 1.8 support by avoiding 1.9-style hashes

  • Loading branch information...
retoo committed Oct 12, 2012
1 parent 483a018 commit 7dcb4e94ef3e17fcd32ae84e35935a4236852e1e
@@ -5,7 +5,7 @@ class Generator
def self.migration(name, options="")
generator_params = [name] + options.split(" ")
Rails::Generators.invoke "active_record:migration", generator_params,
- destination_root: Rails.root
+ :destination_root => Rails.root
end
end
end
@@ -1,10 +1,10 @@
module StandaloneMigrations
class StandaloneMigrations::MinimalRailtieConfig < Rails::Application
- config.generators.options[:rails] = {orm: :active_record}
+ config.generators.options[:rails] = {:orm => :active_record}
config.generators.options[:active_record] = {
- migration: true,
- timestamps: true
+ :migration => true,
+ :timestamps => true
}
end
end
@@ -1,3 +1,3 @@
require File.expand_path("../../../standalone_migrations", __FILE__)
-task environment: ["standalone:connection"] do
+task :environment => ["standalone:connection"] do
end

0 comments on commit 7dcb4e9

Please sign in to comment.