Modified: trunk/lib/conf.rb (2899 => 2900)
--- trunk/lib/conf.rb 2012-01-16 15:16:17 UTC (rev 2899)
+++ trunk/lib/conf.rb 2012-01-17 09:58:16 UTC (rev 2900)
@@ -179,8 +179,8 @@
def self.layouts
#TODO: Perhaps implement code that can load different/extra settings files based on current environment
- layouts = self.fetch_entry('layouts')
- layouts ? layouts.delete_if {|k,v| v["environment"] && (v["environment"] != ENV["RAILS_ENV"])} : {}
+ layouts = self.fetch_entry('layouts') || {}
+ layouts.delete_if {|k,v| v["environment"] && (v["environment"] != ENV["RAILS_ENV"])}
end
# This method is required to create an administrator in the test fixtures