Sha256: 1ba183640224d592ea1117aabdc0e08231ed3527ef2e7e3f63008407adf4cc94

Contents?: true

Size: 420 Bytes

Versions: 13

Compression:

Stored size: 420 Bytes

Contents

require "generators/rspec"

module Shamu
  module Generators
    # @!visibility private
    class ApiControllerGenerator < ::Rails::Generators::Base
      desc "Generate the default api conroller for JSON API responses"
      source_root File.expand_path("../templates", __FILE__)

      def copy_api_controller_file
        copy_file "api_controller.rb", "app/controllers/api_controller.rb"
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shamu-0.0.24 lib/generators/shamu/api_controller/api_controller_generator.rb
shamu-0.0.21 lib/generators/shamu/api_controller/api_controller_generator.rb
shamu-0.0.20 lib/generators/shamu/api_controller/api_controller_generator.rb
shamu-0.0.19 lib/generators/shamu/api_controller/api_controller_generator.rb
shamu-0.0.18 lib/generators/shamu/api_controller/api_controller_generator.rb
shamu-0.0.17 lib/generators/shamu/api_controller/api_controller_generator.rb
shamu-0.0.15 lib/generators/shamu/api_controller/api_controller_generator.rb
shamu-0.0.14 lib/generators/shamu/api_controller/api_controller_generator.rb
shamu-0.0.13 lib/generators/shamu/api_controller/api_controller_generator.rb
shamu-0.0.11 lib/generators/shamu/api_controller/api_controller_generator.rb
shamu-0.0.9 lib/generators/shamu/api_controller/api_controller_generator.rb
shamu-0.0.8 lib/generators/shamu/api_controller/api_controller_generator.rb
shamu-0.0.7 lib/generators/shamu/api_controller/api_controller_generator.rb