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