Sha256: df541c12cc7e5bffdd9ea63a2ef74d161ead55ed44dffc3132493d3e910b199b
Contents?: true
Size: 551 Bytes
Versions: 20
Compression:
Stored size: 551 Bytes
Contents
require "dry-initializer" # This object holds some data tha is usually needed to compute blocks around the app. module Avo module Hosts class BaseHost extend Dry::Initializer option :context, default: proc { Avo::App.context } option :params, default: proc { Avo::App.params } option :view_context, default: proc { Avo::App.view_context } option :current_user, default: proc { Avo::App.current_user } option :block, optional: true def handle instance_exec(&block) end end end end
Version data entries
20 entries across 20 versions & 1 rubygems