module Praxis::PluginConcern::ClassMethods

Constants

PLUGIN_CLASSES

Public Instance Methods

inject!(name) click to toggle source
# File lib/praxis/plugin_concern.rb, line 32
def inject!(name)
  plugin = self.const_get(name)
  praxis = Praxis.const_get(name)

  praxis.include(plugin)
end
setup!() click to toggle source
# File lib/praxis/plugin_concern.rb, line 20
def setup!
  return if @setup

  PLUGIN_CLASSES.each do |name|
    if self.constants.include?(name)
      inject!(name)
    end
  end

  @setup = true
end