Sha256: 70eacd1a0d0c63b9f09ae4c0ee7500c6957586027ef83c8907b721b3507743da
Contents?: true
Size: 446 Bytes
Versions: 114
Compression:
Stored size: 446 Bytes
Contents
module Pageflow module Admin class CustomScopesRenderer < ActiveAdmin::Views::Scopes builder_method :custom_scopes_renderer def build(scopes, options = {}) @default_scope = options.delete(:default_scope) super end def current_scope?(scope) if params[:scope] params[:scope] == scope.id else @default_scope.to_s == scope.id end end end end end
Version data entries
114 entries across 114 versions & 1 rubygems