Class: Pu::Lite::SetupGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pu::Lite::SetupGenerator
- Includes:
- PlutoniumGenerators::Generator
- Defined in:
- lib/generators/pu/lite/setup/setup_generator.rb
Constant Summary collapse
- RAILS_8_VERSION =
::Gem::Version.new("8.0.0")
Instance Method Summary collapse
Methods included from PlutoniumGenerators::Generator
derive_association_name, find_shared_namespace, included
Methods included from PlutoniumGenerators::Concerns::Logger
#debug, #error, #exception, #info, #success, #warn
Methods included from PlutoniumGenerators::Concerns::Config
Instance Method Details
#start ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/generators/pu/lite/setup/setup_generator.rb', line 14 def start ensure_sqlite3_version # Add enhanced adapter for Rails 7 if rails_version < RAILS_8_VERSION bundle "activerecord-enhancedsqlite3-adapter", version: "~> 0.8.0" end rescue => e exception "#{self.class} failed:", e end |