Permalink
Browse files

Add class-level access to database_environment.

  • Loading branch information...
technicalpickles committed Apr 13, 2012
1 parent 8ff890f commit bed3bd613b80faf26a503d9a2c4ab83ff44dea35
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/moonshine/manifest.rb
@@ -64,13 +64,17 @@ def self.env
end
# The current environment's database configuration
- def database_environment
+ def self.database_environment
if configuration[:database]
configuration[:database][rails_env.to_sym]
else
{}
end
end
+
+ def database_environment
+ self.class.database_environment
+ end
# The current deployment target. Best when used with capistrano-ext's multistage settings.
def self.deploy_stage

0 comments on commit bed3bd6

Please sign in to comment.