Sha256: dedcb56cdf646e7d644d5d600e4739deac7a1db7717a92233bf2ff6ebd5a7dba

Contents?: true

Size: 449 Bytes

Versions: 184

Compression:

Stored size: 449 Bytes

Contents

require "dry-initializer"

module Avo
  module Hosts
    class DashboardVisibility
      extend Dry::Initializer

      option :block, default: proc { proc {} }
      option :current_user, default: proc { ::Avo::App.current_user }
      option :context, default: proc { ::Avo::App.context }
      option :dashboard
      option :params, default: proc { ::Avo::App.params }

      def handle
        instance_exec(&block)
      end
    end
  end
end

Version data entries

184 entries across 184 versions & 1 rubygems

Version Path
avo-2.53.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.52.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.49.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.48.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.47.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.46.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.45.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.44.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.43.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.42.2 lib/avo/hosts/dashboard_visibility.rb
avo-2.42.1 lib/avo/hosts/dashboard_visibility.rb
avo-2.42.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.41.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.40.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.39.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.38.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.37.2 lib/avo/hosts/dashboard_visibility.rb
avo-2.37.1 lib/avo/hosts/dashboard_visibility.rb
avo-2.37.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.36.3 lib/avo/hosts/dashboard_visibility.rb