Sha256: f5058d74812196659ffd81439ae3463399e0560c7bde65f5a90a2d9ef0acad77
Contents?: true
Size: 632 Bytes
Versions: 45
Compression:
Stored size: 632 Bytes
Contents
module Itsf module Backend module Generators class InstallGenerator < Rails::Generators::Base desc 'Generates the intializer' source_root File.expand_path('../templates', __FILE__) def generate_intializer copy_file 'initializer.rb', 'config/initializers/001_itsf_backend.rb' end def generate_routes route File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source')) end def generate_controller copy_file 'backend_controller.rb', 'app/controllers/backend_controller.rb' end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems