-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added an install generator for the initializer
- Loading branch information
Steve Forkin
committed
Aug 1, 2015
1 parent
effb0ea
commit 8f750c2
Showing
4 changed files
with
26 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module MustacheForm | ||
module Generators | ||
class InstallGenerator < Rails::Generators::Base | ||
desc "Copy MustacheForm initializer" | ||
source_root File.expand_path('../templates', __FILE__) | ||
|
||
def copy_config | ||
template "config/initializers/mustache_form.rb" | ||
end | ||
end | ||
end | ||
end |
7 changes: 7 additions & 0 deletions
7
lib/generators/mustache_form/templates/config/initializers/mustache_form.rb
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,7 @@ | ||
# | ||
MustacheForm.setup do |config| | ||
# | ||
# - by default simple_form is not enabled | ||
# | ||
config.simple_form_enabled = false | ||
end |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module MustacheForm | ||
VERSION = "0.2.1" | ||
VERSION = "0.2.2" | ||
end |