mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
Merge pull request #280 from rupert654/generator
Simplified generator by using directory action
This commit is contained in:
commit
b43fac90e0
3 changed files with 2 additions and 6 deletions
|
@ -5,12 +5,8 @@ module SimpleForm
|
|||
source_root File.expand_path('../templates', __FILE__)
|
||||
class_option :template_engine
|
||||
|
||||
def copy_initializers
|
||||
copy_file 'simple_form.rb', 'config/initializers/simple_form.rb'
|
||||
end
|
||||
|
||||
def copy_locale_file
|
||||
copy_file 'en.yml', 'config/locales/simple_form.en.yml'
|
||||
def copy_config
|
||||
directory 'config'
|
||||
end
|
||||
|
||||
def copy_scaffold_template
|
||||
|
|
Loading…
Reference in a new issue