lib/wisepdf/configuration.rb in wisepdf-1.2.7 vs lib/wisepdf/configuration.rb in wisepdf-1.2.8

- old
+ new

@@ -37,9 +37,14 @@ def test? (defined?(::Rails) && ::Rails.env == 'test') || (defined?(RAILS_ENV) && RAILS_ENV == 'test') end + def production? + (defined?(::Rails) && ::Rails.env == 'production') || + (defined?(RAILS_ENV) && RAILS_ENV == 'production') + end + def windows? RbConfig::CONFIG['target_os'] == 'mingw32' end end