Sha256: 05a9fa1160312b45f8657eb70341b8a5ed5b4390f549674b35d405ce1f35222e
Contents?: true
Size: 510 Bytes
Versions: 4
Compression:
Stored size: 510 Bytes
Contents
module UbigeoRails module Generators class InstallGenerator < ::Rails::Generators::Base def create_config_file create_file "config/initializers/ubigeo_rails.rb", config_file_content end def mount_engine route 'mount UbigeoRails::Engine, at: "ubigeo"' end private def config_file_content <<CODE UbigeoRails.config do |config| # config.table_name 'ubigeo' # config.db_connection { Rails.env } end CODE end end end end
Version data entries
4 entries across 4 versions & 1 rubygems