Module: ActiveAdmin::Dependency::Adapter

Defined in:
lib/active_admin/dependency.rb

Overview

Dependency adapters provide an easy way to wrap the conditional logic necessary to support multiple versions of a gem.

ActiveAdmin::Dependency.rails.adapter.parameterize 'a b'

> 'a_b'

ActiveAdmin::Dependency.rails.parameterize 'a b'

> 'a_b'

ActiveAdmin::Dependency.devise.adapter -> NameError: uninitialized constant ActiveAdmin::Dependency::Adapter::Devise

Defined Under Namespace

Classes: Base, Rails