1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00

Use source_root class method

This commit is contained in:
Carlos Antonio da Silva 2010-07-06 18:42:54 -03:00
parent f896595cb3
commit eef11229c1

View file

@ -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'