Module: SparkApi::Models::Defaultable

Extended by:
Finders
Included in:
IdxLink, QuickSearch
Defined in:
lib/spark_api/models/defaultable.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

DEFAULT_ID =
"default"

Class Method Summary collapse

Methods included from Finders

find, find_one, first, last

Class Method Details

.included(base) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/spark_api/models/defaultable.rb', line 9

def self.included(base)

  class << base
    alias original_find find
  end

  base.extend(ClassMethods)

end