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.0.1"

Class Method Summary collapse

Class Method Details

.active_record_protected_attributes?Boolean

Returns:

  • (Boolean)


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

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