Skip to content

Commit

Permalink
#24 setup simple form
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur Özgür ÖZKAN committed Jun 7, 2013
1 parent 9967bcc commit a97c9ec
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cybele/app_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ def setup_letter_opener
configure_environment 'development', config
end

# Interval: Setup simple form
def setup_simple_form
generate 'simple_form:install --bootstrap'
end

# Internal: Leftovers
def leftovers
end
Expand Down
9 changes: 9 additions & 0 deletions lib/cybele/generators/app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def customization
invoke :gitignore_files_and_folders
invoke :setup_bootstrap_sass_coffee
invoke :configure_mail_setting
invoke :setup_simple_form
end

# Internal: Customize gemfile
Expand Down Expand Up @@ -79,6 +80,7 @@ def gitignore_files_and_folders

# Internal: Setup up bootstrap, sass, coffee
def setup_bootstrap_sass_coffee
say 'Setup bootstrap'
build :setup_asset_precompile
build :setup_application_js
build :convert_application_js_to_coffee
Expand All @@ -87,11 +89,18 @@ def setup_bootstrap_sass_coffee

# Internal: Setup mail setting
def configure_mail_setting
say 'Setup mail settings'
build :configure_action_mailer
build :configure_smtp
build :setup_letter_opener
end

# Internal: Setup simple_form
def setup_simple_form
say 'Setup simple form'
build :setup_simple_form
end


# Internal: Let's not: We'll bundle manually at the right spot.
def run_bundle
Expand Down
1 change: 1 addition & 0 deletions templates/cybele_Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ gem 'haml-rails', '~> 0.4'
gem 'bootstrap-sass', '~> 2.3.1.0'
gem 'responders'
gem 'exception_notification'
gem 'simple_form'

group :doc do
gem 'sdoc', require: false
Expand Down

0 comments on commit a97c9ec

Please sign in to comment.