Sha256: 5e42faf0ae3f10b7952164be7e8b3bf6de8d3d4618d1ca2b608d904fe200289e
Contents?: true
Size: 680 Bytes
Versions: 2
Compression:
Stored size: 680 Bytes
Contents
module Spree module Auth module Generators class InstallGenerator < Rails::Generators::Base def self.source_paths paths = self.superclass.source_paths paths << File.expand_path('../templates', __FILE__) paths.flatten end def generate_devise_key return if ENV['TRAVIS'] template 'config/initializers/devise.rb', 'config/initializers/devise.rb' end def add_migrations run 'bundle exec rake railties:install:migrations FROM=solidus_auth_devise' end def run_migrations run 'bundle exec rake db:migrate' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_auth_devise-1.1.0 | lib/generators/spree/auth/install/install_generator.rb |
solidus_auth_devise-1.0.0 | lib/generators/spree/auth/install/install_generator.rb |