forked from heartcombo/simple_form
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename simple_form_install to simple_form:install
- Loading branch information
Showing
10 changed files
with
36 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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 | ||
|
||
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' | ||
end | ||
|
||
def copy_scaffold_template | ||
copy_file '_form.html.erb', 'lib/templates/erb/scaffold/_form.html.erb' | ||
end | ||
end | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
...ple_form_install/templates/_form.html.erb → ...tors/simple_form/templates/_form.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
19 changes: 0 additions & 19 deletions
19
lib/generators/simple_form_install/simple_form_install_generator.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters