class SpreeUnifiedPayment::Generators::InstallGenerator
Public Instance Methods
add_javascripts()
click to toggle source
# File lib/generators/spree_unified_payment/install/install_generator.rb, line 5 def add_javascripts append_file 'app/assets/javascripts/admin/all.js', "//= require admin/spree_unified_payment\n" end
add_migrations()
click to toggle source
# File lib/generators/spree_unified_payment/install/install_generator.rb, line 13 def add_migrations run 'bundle exec rake railties:install:migrations FROM=spree_unified_payment' end
add_stylesheets()
click to toggle source
# File lib/generators/spree_unified_payment/install/install_generator.rb, line 9 def add_stylesheets inject_into_file 'app/assets/stylesheets/store/all.css', " *= require store/spree_unified_payment\n", :before => /\*\//, :verbose => true end
run_migrations()
click to toggle source
# File lib/generators/spree_unified_payment/install/install_generator.rb, line 17 def run_migrations run 'bundle exec rake db:migrate' end