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:
parent
f896595cb3
commit
eef11229c1
1 changed files with 1 additions and 4 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue