Module: Redirector

Defined in:
lib/redirector.rb,
lib/redirector/engine.rb,
lib/redirector/version.rb,
lib/redirector/middleware.rb,
lib/redirector/regex_attribute.rb

Defined Under Namespace

Modules: RegexAttribute Classes: Engine, Middleware, RuleError

Constant Summary collapse

VERSION =
"1.1.7"

Class Method Summary collapse

Class Method Details

.active_record_protected_attributes?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/redirector.rb', line 10

def self.active_record_protected_attributes?
  @active_record_protected_attributes ||= Rails.version.to_i < 4 || defined?(ProtectedAttributes)
end