lib/madvertise/environment.rb in madvertise-ext-0.9.4 vs lib/madvertise/environment.rb in madvertise-ext-0.9.5

- old
+ new

@@ -30,17 +30,26 @@ def to_sym mode.to_sym end # Return true if the current environment is +production+. - def prod? + def production? to_sym == :production end + alias :prod? :production? + + # Return true if the current environment is +production+. + def staging? + to_sym == :staging + end + # Return true if the current environment is +development+. - def dev? + def development? to_sym == :development end + + alias :dev? :development? # Return true if the current environment is +test+. def test? to_sym == :test end