Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed ability to run as Rails Engine or Application.
- Loading branch information
1 parent
6deedfc
commit 52beb0b
Showing
8 changed files
with
60 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
require 'rubygems' | ||
require 'bundler' | ||
# This file is used by Rack-based servers to start the application. | ||
|
||
Bundler.require :default, :development | ||
|
||
Combustion.initialize! | ||
run Combustion::Application | ||
require ::File.expand_path('../config/environment', __FILE__) | ||
run FatFreeCRM::Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FatFreeCRM::Application.configure do | ||
# Settings specified here will take precedence over those in config/application.rb | ||
|
||
# In the development environment your application's code is reloaded on | ||
# every request. This slows down response time but is perfect for development | ||
# since you don't have to restart the web server when you make code changes. | ||
config.cache_classes = false | ||
|
||
# Log error messages when you accidentally call methods on nil. | ||
config.whiny_nils = true | ||
|
||
# Show full error reports and disable caching | ||
config.consider_all_requests_local = true | ||
config.action_controller.perform_caching = false | ||
|
||
# Don't care if the mailer can't send | ||
config.action_mailer.raise_delivery_errors = false | ||
|
||
# Print deprecation notices to the Rails logger | ||
config.active_support.deprecation = :log | ||
|
||
# Only use best-standards-support built into browsers | ||
config.action_dispatch.best_standards_support = :builtin | ||
|
||
# Raise exception on mass assignment protection for Active Record models | ||
config.active_record.mass_assignment_sanitizer = :strict | ||
|
||
# Log the query plan for queries taking more than this (works | ||
# with SQLite, MySQL, and PostgreSQL) | ||
config.active_record.auto_explain_threshold_in_seconds = 0.5 | ||
|
||
# Do not compress assets | ||
config.assets.compress = false | ||
|
||
# Expands the lines which load the assets | ||
config.assets.debug = true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
#!/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/fat_free_crm/engine', __FILE__) | ||
|
||
require 'rails/all' | ||
require 'rails/engine/commands' | ||
APP_PATH = File.expand_path('../../config/application', __FILE__) | ||
require File.expand_path('../../config/boot', __FILE__) | ||
require 'rails/commands' |