Skip to content

Commit

Permalink
feat: rails kiqr:install
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellberg committed Jun 6, 2024
1 parent 667e6c9 commit 7f010c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gems/kiqr/lib/generators/kiqr/install_generator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "rails/generators/base"

module Kiqr
class InstallGenerator < Rails::Generators::Base
source_root File.expand_path("templates", __dir__)

# Copy migrations to host application.
def copy_migrations
say "Copying migrations to host app..", :green
rake "kiqr:install:migrations"
end
end
end
2 changes: 2 additions & 0 deletions gems/kiqr/lib/kiqr/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

module Kiqr
class Engine < ::Rails::Engine
isolate_namespace Kiqr

initializer "kiqr.action_mailer" do |app|
config.action_mailer.default_url_options = Kiqr.default_url_options
end
Expand Down

0 comments on commit 7f010c0

Please sign in to comment.