Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing issues when loading with rails
- Loading branch information
Showing
9 changed files
with
50 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.1.0.beta4 | ||
1.1.0.beta5 |
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
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,12 +1,21 @@ | ||
require "rails" | ||
require "active_model/railtie" | ||
|
||
module CouchrestModel | ||
module CouchRest | ||
# = Active Record Railtie | ||
class Railtie < Rails::Railtie | ||
class ModelRailtie < Rails::Railtie | ||
config.generators.orm :couchrest_model | ||
config.generators.test_framework :test_unit, :fixture => false | ||
|
||
initializer "couchrest_model.configure_default_connection" do | ||
CouchRest::Model::Base.configure do |conf| | ||
conf.environment = Rails.env | ||
conf.connection_config_file = File.join(Rails.root, 'config', 'couchdb.yml') | ||
conf.connection[:prefix] = | ||
Rails.application.class.to_s.underscore.gsub(/\/.*/, '') | ||
end | ||
end | ||
end | ||
|
||
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