Class: TinyAdmin::BasicApp

Inherits:
Roda
  • Object
show all
Includes:
Utils
Defined in:
lib/tiny_admin/basic_app.rb

Direct Known Subclasses

Authentication, Router

Class Method Summary collapse

Methods included from Utils

#humanize, #params_to_s, #prepare_page, #to_class

Class Method Details

.authentication_pluginObject



8
9
10
11
12
# File 'lib/tiny_admin/basic_app.rb', line 8

def authentication_plugin
  plugin = TinyAdmin.settings.authentication&.dig(:plugin)
  plugin_class = plugin.is_a?(String) ? Object.const_get(plugin) : plugin
  plugin_class || TinyAdmin::Plugins::NoAuth
end