Module: CouchbaseOrm::StrictLoading

Extended by:
ActiveSupport::Concern
Included in:
Document
Defined in:
lib/couchbase-orm/strict_loading.rb

Instance Method Summary collapse

Instance Method Details

#init_strict_loadingObject



9
10
11
# File 'lib/couchbase-orm/strict_loading.rb', line 9

def init_strict_loading
  @strict_loading = self.class.strict_loading_by_default
end

#strict_loading!Object



13
14
15
# File 'lib/couchbase-orm/strict_loading.rb', line 13

def strict_loading!
  @strict_loading = true
end

#strict_loading?Boolean

Returns:



17
18
19
# File 'lib/couchbase-orm/strict_loading.rb', line 17

def strict_loading?
  !!@strict_loading
end