Permalink
Browse files

convert engine into railtie

  • Loading branch information...
1 parent ccd68e0 commit de2c6e203495e1597c8d9e8cc0dc0df741a09684 @phlipper phlipper committed Nov 15, 2012
View
@@ -2,5 +2,3 @@ source :rubygems
# Specify your gem's dependencies in thincloud-test.gemspec
gemspec
-
-gem "sqlite3"
No changes.
View
No changes.
View
No changes.
View
No changes.
View
No changes.
View
No changes.
View
@@ -1,2 +0,0 @@
-Rails.application.routes.draw do
-end
View
@@ -1,2 +1,2 @@
require "thincloud/test/version"
-require "thincloud/test/engine"
+require "thincloud/test/railtie"
@@ -1,6 +1,6 @@
module Thincloud
module Test
- class Engine < ::Rails::Engine
+ class Railtie < ::Rails::Railtie
initializer "thincloud.test.generators" do |app|
app.config.generators do |g|
View
@@ -1,8 +0,0 @@
-#!/usr/bin/env ruby
-# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
-
-ENGINE_ROOT = File.expand_path('../..', __FILE__)
-ENGINE_PATH = File.expand_path('../../lib/thincloud/test/engine', __FILE__)
-
-require 'rails/all'
-require 'rails/engine/commands'

0 comments on commit de2c6e2

Please sign in to comment.