Sha256: 8cd49ab69099757c76ae0bd4834fceb22fdd443f02233c74f4f2338e315adb82

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

require 'rails/generators/base'

module OauthService
  module Generators
    class ControllersGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates/controllers", __FILE__)

      desc "Create inherited LoginController in your app/controllers folder."

      def create_controllers
        template "login_controller.rb", "app/controllers/login_controller.rb"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oauth_service-0.0.2 lib/generators/oauth_service/controllers_generator.rb
oauth_service-0.0.1 lib/generators/oauth_service/controllers_generator.rb