Module: ActiveStash::RelationHelp::Compatability

Included in:
ActiveStash::Relation
Defined in:
lib/active_stash/relation_help/compatibility.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/active_stash/relation_help/compatibility.rb', line 5

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#unsupported!(method_name) ⇒ Object

Raises:



9
10
11
# File 'lib/active_stash/relation_help/compatibility.rb', line 9

def unsupported!(method_name)
  raise QueryError, "'#{method_name}' is unsupported when used with encrypted queries or sorts"
end