Sha256: eb83cae075d28284e370ee62466de5fb7f5600ab9de777bb962995258f4ee736

Contents?: true

Size: 383 Bytes

Versions: 6

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

Scribo.setup do |config|
  config.base_controller = "::UnauthenticatedController"
  config.admin_authentication_module = "Auxilium::Concerns::AdminAuthenticated"

  config.scribable_objects = lambda do
    return [] unless Current.account

    [Current.account]
  end

  config.scribable_for_request = lambda do |request|
    Current.account
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
scribo-1.0.44 lib/generators/scribo/templates/config/initializers/scribo.rb
scribo-1.0.43 lib/generators/scribo/templates/config/initializers/scribo.rb
scribo-1.0.42 lib/generators/scribo/templates/config/initializers/scribo.rb
scribo-1.0.41 lib/generators/scribo/templates/config/initializers/scribo.rb
scribo-1.0.40 lib/generators/scribo/templates/config/initializers/scribo.rb
scribo-1.0.39 lib/generators/scribo/templates/config/initializers/scribo.rb