Sha256: b34c8d542a38c34eb63ca8ec5534ac1d33620171cf65a392bebe461dea4b70b3
Contents?: true
Size: 469 Bytes
Versions: 4
Compression:
Stored size: 469 Bytes
Contents
module GrapeResource class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) def copy_initializer template "initializer.rb", "config/initializers/grape_resource.rb" end def insert_entry_point insert_into_file "app/#{GrapeResource.directory}/main.rb", "\n\n #{GrapeResource.entry_point_routes} -- DONT REMOVE THIS LINE", after: " mount API::V1::Info::Routes" end end end
Version data entries
4 entries across 4 versions & 1 rubygems