aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAlban Peignier2012-04-30 17:14:37 +0200
committerAlban Peignier2012-04-30 17:14:37 +0200
commita51e50beaefa809d2ed9fd9d7a8afe73e0cca3a8 (patch)
tree1cec94c183ca905afb317e1acff3c70b0116c9d4 /config
parentcca4d6c96bae2bad367eb44e1ba278a02fbe62ae (diff)
downloadchouette-core-a51e50beaefa809d2ed9fd9d7a8afe73e0cca3a8.tar.bz2
Prepare Referential by using Chouette::Loader import if a file is given. Refs #15
Diffstat (limited to 'config')
-rw-r--r--config/environments/development.rb6
-rw-r--r--config/initializers/devise.rb2
2 files changed, 7 insertions, 1 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index ebf0171fc..6c39bf8eb 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -29,4 +29,10 @@ ChouetteIhm::Application.configure do
config.assets.debug = true
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
+
+ config.to_prepare do
+ # Chouette::Loader.chouette_command = "true"
+ Chouette::Loader.chouette_command = "tmp/chouette-command/chouette"
+ end
+
end
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb
index e66681d03..6b256c3b4 100644
--- a/config/initializers/devise.rb
+++ b/config/initializers/devise.rb
@@ -55,7 +55,7 @@ Devise.setup do |config|
# It can be set to an array that will enable http authentication only for the
# given strategies, for example, `config.http_authenticatable = [:token]` will
# enable it only for token authentication.
- # config.http_authenticatable = false
+ config.http_authenticatable = true
# If http headers should be returned for AJAX requests. True by default.
# config.http_authenticatable_on_xhr = true