Sha256: 0a745b6e652fc4dbefeb1ac41711e5478c92ca0636a30900e9dfa406d73a36a5

Contents?: true

Size: 647 Bytes

Versions: 22

Compression:

Stored size: 647 Bytes

Contents

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

module Haml
  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.haml',              File.join('app/views', class_path, 'oauth_consumers', 'index.html.haml')
        template 'show.html.haml',               File.join('app/views', class_path, 'oauth_consumers', 'show.html.haml')
      end

      protected
      def handler
        :haml
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 6 rubygems

Version Path
houston-oauth-plugin-0.5.1 lib/generators/haml/oauth_consumer_generator.rb
oauth_consumer-0.1.3 lib/generators/haml/oauth_consumer_generator.rb
panjiva-oauth-plugin-0.4.1 lib/generators/haml/oauth_consumer_generator.rb
oauth_consumer-0.1.2 lib/generators/haml/oauth_consumer_generator.rb
oauth_consumer-0.1.1 lib/generators/haml/oauth_consumer_generator.rb
oauth_consumer-0.1.0 lib/generators/haml/oauth_consumer_generator.rb
oauth-plugin-0.5.1 lib/generators/haml/oauth_consumer_generator.rb
oauth-plugin-0.5.0 lib/generators/haml/oauth_consumer_generator.rb
oauth-plugin-0.4.1 lib/generators/haml/oauth_consumer_generator.rb
oauth-plugin-0.4.0 lib/generators/haml/oauth_consumer_generator.rb
oauth-plugin-0.4.0.rc2 lib/generators/haml/oauth_consumer_generator.rb
oauth-plugin-0.4.0.rc1 lib/generators/haml/oauth_consumer_generator.rb
oauth-plugin-0.4.0.pre7 lib/generators/haml/oauth_consumer_generator.rb
oauth-plugin-0.4.0.pre6 lib/generators/haml/oauth_consumer_generator.rb
oauth-plugin-0.4.0.pre5 lib/generators/haml/oauth_consumer_generator.rb
insrc-oauth-plugin-0.4.0.pre6 lib/generators/haml/oauth_consumer_generator.rb
insrc-oauth-plugin-0.4.0.pre5 lib/generators/haml/oauth_consumer_generator.rb
le1t0-oauth-plugin-0.4.0.pre4.001 lib/generators/haml/oauth_consumer_generator.rb
oauth-plugin-0.4.0.pre4 lib/generators/haml/oauth_consumer_generator.rb
oauth-plugin-0.4.0.pre3 lib/generators/haml/oauth_consumer_generator.rb