lib/playmo.rb in playmo-0.0.14 vs lib/playmo.rb in playmo-0.0.17

- old
+ new

@@ -1,12 +1,9 @@ # encoding: utf-8 require 'rails/all' -#require 'compass' -#Compass::Frameworks.register("playmo", :path => "#{File.dirname(__FILE__)}/..") - #if defined?(ActionController) # require File.join(File.dirname(__FILE__), 'app', 'helpers', 'playmo_helper') # ActionController::Base.helper(PlaymoHelper) #end @@ -28,11 +25,19 @@ # GitRecipe # CongratsRecipe module Playmo extend ActiveSupport::Autoload + + class Railtie < Rails::Railtie + config.app_generators do |g| + path = File::expand_path('../generators/templates', __FILE__) + g.templates.unshift path + end + end + autoload :Version autoload :Cli autoload :Event autoload :Options autoload :Question autoload :Answer @@ -40,11 +45,6 @@ autoload :Choice autoload :Cookbook autoload :Recipe Dir["#{File.dirname(__FILE__)}/playmo/recipes/*_recipe.rb"].each { |file| require file } - - #autoload :Generators, 'playmo/generators/base' - #class Railtie < ::Rails::Railtie - # config.app_generators.scaffold_controller = :playmo_controller - #end end