Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix File.expand_path calls.

  • Loading branch information...
commit ddca7c147d3fab8173fbeb81919241d25d587e34 1 parent 39573f5
@mitio mitio authored
View
2  generators/smailer/migration/migration_generator.rb
@@ -5,7 +5,7 @@ class MigrationGenerator < Rails::Generators::Base
def manifest
file_name = 'create_smailer_tables'
@migration_name = file_name.camelize
- template_path = File.join('../../lib/generators/smailer/templates/migration.rb.erb', __FILE__)
+ template_path = File.expand_path('../../lib/generators/smailer/templates/migration.rb.erb', File.dirname(__FILE__))
record do |m|
m.migration_template template_path, File.join('db', 'migrate'), :migration_file_name => file_name
View
2  rails/init.rb
@@ -1 +1 @@
-require File.expand_path('../lib/smailer', __FILE__)
+require File.expand_path('../lib/smailer', File.dirname(__FILE__))
Please sign in to comment.
Something went wrong with that request. Please try again.