lib/generators/chaltron/install_generator.rb in chaltron-0.3.2 vs lib/generators/chaltron/install_generator.rb in chaltron-1.0.0
- old
+ new
@@ -13,10 +13,19 @@
if options.interactive?
exit unless yes?('Are you sure you want to continue? [yes/NO]')
end
end
+ def gemfile
+ gem 'bootstrap_form',
+ git: 'https://github.com/bootstrap-ruby/rails-bootstrap-forms.git',
+ branch: 'master'
+ Bundler.with_clean_env do
+ run 'bundle install'
+ end
+ end
+
def db_migrations
rake 'chaltron_engine:install:migrations'
end
def db_seed
@@ -40,12 +49,9 @@
directory 'app/views/layouts'
directory 'app/assets/images'
# javascript
inject_into_file 'app/assets/javascripts/application.js',
"//= require chaltron\n", before: '//= require_tree .'
- # css
- inject_into_file 'app/assets/stylesheets/application.css',
- " *= require chaltron\n", before: ' *= require_self'
end
def create_index_controller
generate 'controller home index'
route "root to: 'home#index'"