Sha256: 72c616af8620ddeab81bc2f13f5079fbe1121faa9bcc3d166a5a057e31571d30

Contents?: true

Size: 490 Bytes

Versions: 22

Compression:

Stored size: 490 Bytes

Contents

require 'rails/generators/erb'

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

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

Version data entries

22 entries across 22 versions & 6 rubygems

Version Path
oauth-plugin-0.4.0.pre2 lib/generators/erb/oauth_consumer_generator.rb
oauth-plugin-0.4.0.pre1 lib/generators/erb/oauth_consumer_generator.rb