Skip to content

Commit

Permalink
Use source_root class method
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Jul 6, 2010
1 parent f896595 commit eef1122
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/generators/simple_form/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ module SimpleForm
module Generators
class InstallGenerator < Rails::Generators::Base
desc "Copy SimpleForm default files"

def self.source_root
@_source_root = File.expand_path('../templates', __FILE__)
end
source_root File.expand_path('../templates', __FILE__)

def copy_initializers
copy_file 'simple_form.rb', 'config/initializers/simple_form.rb'
Expand Down

0 comments on commit eef1122

Please sign in to comment.