Sha256: 6bc5f28ebeddacaebb650b8a84321df65f4a0696a7a3ad2f1e4201501d5ac367
Contents?: true
Size: 489 Bytes
Versions: 58
Compression:
Stored size: 489 Bytes
Contents
module ActiveAdmin class ResourceController < BaseController module Decorators protected def resource decorator = active_admin_config.decorator_class resource = super decorator ? decorator.new(resource) : resource end def active_admin_collection decorator = active_admin_config.decorator_class collection = super decorator ? decorator.decorate_collection(collection) : collection end end end end
Version data entries
58 entries across 58 versions & 4 rubygems