Sha256: eb4895cc1214fdb9d2467b3774f209433b353128a09e46a702848ce19dfb4148
Contents?: true
Size: 473 Bytes
Versions: 57
Compression:
Stored size: 473 Bytes
Contents
module Cmor::Files::Backend module Generators class InstallGenerator < Rails::Generators::Base desc 'Generates the initializer' source_root File.expand_path('../templates', __FILE__) def generate_initializer template 'initializer.rb', 'config/initializers/cmor_files_backend.rb' end def generate_routes route File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source')) end end end end
Version data entries
57 entries across 57 versions & 1 rubygems