Module: Pavlov

Defined in:
lib/pavlov/concern.rb,
lib/pavlov.rb,
lib/pavlov/query.rb,
lib/pavlov/engine.rb,
lib/pavlov/command.rb,
lib/pavlov/helpers.rb,
lib/pavlov/version.rb,
lib/pavlov/operation.rb,
lib/pavlov/interactor.rb,
lib/pavlov/access_denied.rb,
lib/pavlov/operation_finder.rb,
lib/pavlov/support/inflector.rb,
lib/pavlov/alpha_compatibility.rb,
lib/generators/pavlov/install_generator.rb

Overview

fork from active_support 3.2.14 : ActiveSuport::Concern Removed deprecation warning, and don’t include InstanceMethods

Including InstanceMethods conflicts with Virtus (which also uses InstanceMethods)

Defined Under Namespace

Modules: Command, Concern, Helpers, Interactor, Operation, Query, Validations Classes: AccessDenied, Engine, Inflector, InstallGenerator, OperationFinder, ValidationError

Constant Summary collapse

VERSION =

We’re doing this because we might write tests that deal with other versions of bundler and we are unsure how to handle this better.

'0.1.8.1'

Class Method Summary collapse

Class Method Details

.command(command_name, *args) ⇒ Object



4
5
6
7
# File 'lib/pavlov.rb', line 4

def self.command command_name, *args
  klass = class_for_command(command_name)
  klass.new(*args).call
end

.interactor(interactor_name, *args) ⇒ Object



9
10
11
12
# File 'lib/pavlov.rb', line 9

def self.interactor interactor_name, *args
  klass = class_for_interactor(interactor_name)
  klass.new(*args).call
end

.query(query_name, *args) ⇒ Object



14
15
16
17
# File 'lib/pavlov.rb', line 14

def self.query query_name, *args
  klass = class_for_query(query_name)
  klass.new(*args).call
end