Sha256: 00c6c25953d79874091ddbadadfbeb4621982cb577f06b5bce723f40f722048a

Contents?: true

Size: 647 Bytes

Versions: 2

Compression:

Stored size: 647 Bytes

Contents

require 'rails/generators/erb/controller/controller_generator'

module Slim
  module Generators
    class OauthConsumerGenerator < Erb::Generators::Base
      source_root File.expand_path('../oauth_consumer_templates', __FILE__)

      argument :name, :type => :string, :default => 'Oauth'

      def copy_view_files
        template 'index.html.slim',              File.join('app/views', class_path, 'oauth_consumers', 'index.html.slim')
        template 'show.html.slim',               File.join('app/views', class_path, 'oauth_consumers', 'show.html.slim')
      end

      protected
      def handler
        :slim
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
houston-oauth-plugin-0.5.1 lib/generators/slim/oauth_consumer_generator.rb
oauth-plugin-0.5.1 lib/generators/slim/oauth_consumer_generator.rb