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.32.5 lib/avo/hosts/dashboard_visibility.rb
avo-2.32.4 lib/avo/hosts/dashboard_visibility.rb
avo-2.32.3 lib/avo/hosts/dashboard_visibility.rb
avo-2.32.2 lib/avo/hosts/dashboard_visibility.rb
avo-2.32.1 lib/avo/hosts/dashboard_visibility.rb
avo-2.32.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.31.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.30.2 lib/avo/hosts/dashboard_visibility.rb
avo-2.30.1 lib/avo/hosts/dashboard_visibility.rb
avo-2.30.1.pre4.pr1683 lib/avo/hosts/dashboard_visibility.rb
avo-2.30.1.pre3.pr1683 lib/avo/hosts/dashboard_visibility.rb
avo-2.30.1.pre2.pr1683 lib/avo/hosts/dashboard_visibility.rb
avo-2.30.1.pre1.pr1683 lib/avo/hosts/dashboard_visibility.rb
avo-2.30.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.29.1 lib/avo/hosts/dashboard_visibility.rb
avo-2.29.1.pre.pr1652 lib/avo/hosts/dashboard_visibility.rb
avo-2.29.0 lib/avo/hosts/dashboard_visibility.rb
avo-2.28.3.pre.pr1646 lib/avo/hosts/dashboard_visibility.rb
avo-2.28.2.pre.pr1642 lib/avo/hosts/dashboard_visibility.rb
avo-2.28.1.pre.pr1642 lib/avo/hosts/dashboard_visibility.rb