View Source Bonfire.Common.Extend (bonfire v0.3.5-classic-beta.7)

Link to this section Summary

Functions

Whether an Elixir module or extension / OTP app is present AND not part of a disabled Bonfire extension (by having in config something like config :bonfire_common, disabled: true)

Whether an Elixir module or extension / OTP app is present

Whether an Elixir module or extension / OTP app has configuration keys set up

Whether an Elixir module or extension / OTP app is present AND not part of a disabled Bonfire extension (by having in config something like config :bonfire_common, disabled: true)

Link to this section Functions

Link to this function

application_loaded?(extension)

View Source
Link to this function

extension_enabled?(module_or_otp_app, opts \\ [])

View Source

Whether an Elixir module or extension / OTP app is present AND not part of a disabled Bonfire extension (by having in config something like config :bonfire_common, disabled: true)

Link to this function

extension_loaded?(module_or_otp_app)

View Source

Whether an Elixir module or extension / OTP app is present

Link to this function

has_extension_config?(module_or_otp_app)

View Source

Whether an Elixir module or extension / OTP app has configuration keys set up

Link to this macro

import_if_enabled(module, fallback_module \\ nil)

View Source (macro)
Link to this function

maybe_extension_loaded!(module_or_otp_app)

View Source
Link to this function

maybe_extension_loaded(module_or_otp_app)

View Source
Link to this function

maybe_module_loaded(module)

View Source
Link to this function

maybe_schema_or_pointer(schema_module)

View Source

Whether an Elixir module or extension / OTP app is present AND not part of a disabled Bonfire extension (by having in config something like config :bonfire_common, disabled: true)

TODO: also make it possible to disable individual modules in config

Link to this function

module_exists_or(module, fallback)

View Source
Link to this function

quoted_import_if_enabled(module, fallback_module \\ nil)

View Source
Link to this function

quoted_require_if_enabled(module, fallback_module \\ nil)

View Source
Link to this function

quoted_use_if_enabled(module, fallback_module \\ nil)

View Source
Link to this macro

require_if_enabled(module, fallback_module \\ nil)

View Source (macro)
Link to this macro

use_if_enabled(module, fallback_module \\ nil)

View Source (macro)