lib/massimo/config.rb in massimo-0.6.1 vs lib/massimo/config.rb in massimo-0.6.2
- old
+ new
@@ -59,7 +59,13 @@
# Convience method for getting options for a given library name. For instance,
# this is how we get the options set for Haml or Sass during processing.
def options_for(lib_name)
send(lib_name) || {}
end
+
+ # Wether or not the Site's environment is in production mode. Usually you would
+ # want to set this to compress and concat assets.
+ def production?
+ !!self.production
+ end
end
end