mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 07:16:41 +00:00
show restriction errors in Rails test mode by default.
or always if not using Rails
This commit is contained in:
@@ -24,7 +24,7 @@ module ValidatesTimeliness
|
||||
|
||||
# Ignore errors when restriction options are evaluated
|
||||
mattr_accessor :ignore_restriction_errors
|
||||
@@ignore_restriction_errors = false
|
||||
@@ignore_restriction_errors = defined?(Rails) ? !Rails.env.test? : false
|
||||
|
||||
# Setup method for plugin configuration
|
||||
def self.setup
|
||||
|
||||
Reference in New Issue
Block a user