Method: Collective::Configuration#finalize
- Defined in:
- lib/collective/configuration.rb
#finalize ⇒ Object
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/collective/configuration.rb', line 132 def finalize() if ! env then @env = ( ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "test" ) log "Defaulting env to #{env}" if verbose >= 1 end if ! name then @name = "collective" log "Defaulting name to #{name}" if verbose >= 1 end if ! @root then chdir(default_root) end log inspect if verbose >= 2 freeze self end |