lib/playmo.rb in playmo-0.0.18 vs lib/playmo.rb in playmo-0.1.0
- old
+ new
@@ -1,33 +1,29 @@
# encoding: utf-8
-
require 'rails/all'
-#if defined?(ActionController)
-# require File.join(File.dirname(__FILE__), 'app', 'helpers', 'playmo_helper')
-# ActionController::Base.helper(PlaymoHelper)
-#end
-
# Recipes order:
-# MarkupRecipe
-# AssetsRecipe
-# ApplicationControllerRecipe
-# CompassRecipe
-# FormsRecipe
-# JavascriptFrameworkRecipe
-# DeviseRecipe
-# LayoutRecipe
-# HomeControllerRecipe
-# ApplicationHelperRecipe
-# UnicornRecipe
-# ThinkingSphinxRecipe
-# RspecRecipe
-# CapistranoRecipe
-# RvmRecipe
-# SetupDatabaseRecipe
-# GitRecipe
-# CongratsRecipe
+# rails
+# locale
+# markup
+# assets
+# application_controller
+# compass
+# forms
+# javascript_framework
+# layout
+# devise
+# home_controller
+# application_helper
+# unicorn
+# thinking_sphinx
+# rspec
+# capistrano
+# rvm
+# setup_database
+# gemfile
+# git
module Playmo
extend ActiveSupport::Autoload
class Railtie < Rails::Railtie
@@ -39,14 +35,17 @@
autoload :Version
autoload :Cli
autoload :Event
autoload :Options
- autoload :Question
- autoload :Answer
- autoload :Silent
- autoload :Choice
autoload :Cookbook
autoload :Recipe
- Dir["#{File.dirname(__FILE__)}/playmo/recipes/*_recipe.rb"].each { |file| require file }
+ class ::Object
+ include Playmo::Recipe
+ end
+
+ Dir["#{File.dirname(__FILE__)}/playmo/recipes/*_recipe.rb"].each { |f| require f }
end
+
+
+