Module: DroidServices::Extensions::HasDecorator

Extended by:
ActiveSupport::Concern
Included in:
BaseResource
Defined in:
lib/droid_services/extensions/has_decorator.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#decorated_collectionObject



15
16
17
18
19
20
21
# File 'lib/droid_services/extensions/has_decorator.rb', line 15

def decorated_collection
  if decorable?
    build_decorated_collection
  else
    build_collection
  end
end