lib/generators/slim/controller/controller_generator.rb in slim-rails-1.0.1 vs lib/generators/slim/controller/controller_generator.rb in slim-rails-1.0.2
- old
+ new
@@ -1,10 +1,10 @@
require 'rails/generators/erb/controller/controller_generator'
module Slim
module Generators
class ControllerGenerator < Erb::Generators::ControllerGenerator
- source_root File.expand_path '..', 'templates', __FILE__
+ source_root File.expand_path File.join '..', 'templates', __FILE__
protected
def handler
:slim
end