Sha256: 140fa14cf70c3b242b4f59f9e167bc7020a9e34fc2cbf9c3d9d389efd0a06fa0
Contents?: true
Size: 544 Bytes
Versions: 13
Compression:
Stored size: 544 Bytes
Contents
module Signum class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def create_initializer_file template "config/initializers/signum.rb" end def add_route return if Rails.application.routes.routes.detect { |route| route.app.app == Signum::Engine } route %(mount Signum::Engine => "/signum") end def copy_migrations rake "signum:install:migrations" end def tailwindcss_config rake "signum:tailwindcss:config" end end end
Version data entries
13 entries across 13 versions & 1 rubygems