Module: EdgeRider::OriginClass

Extended by:
OriginClass
Included in:
OriginClass
Defined in:
lib/edge_rider/origin_class.rb

Instance Method Summary collapse

Instance Method Details

#origin_classObject



4
5
6
7
8
9
10
# File 'lib/edge_rider/origin_class.rb', line 4

def origin_class
  scope = scoped({})
  while scope.respond_to?(:klass, true)
    scope = scope.klass
  end
  scope
end