Module: AppmospheresAudit

Defined in:
lib/appmospheres_audit.rb,
lib/appmospheres_audit/version.rb,
lib/generators/appmospheres_audit/config_generator.rb,
lib/generators/appmospheres_audit/migration_generator.rb

Defined Under Namespace

Modules: ControllerTrail, RecordTrail, SupportTrail Classes: ConfigGenerator, MigrationGenerator

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



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

def self.configure
  yield(self) if block_given?
end

.method_missing(symbol, *args) ⇒ Object

set or get the configuration parameters



21
22
23
24
25
26
27
# File 'lib/appmospheres_audit.rb', line 21

def method_missing(symbol, *args)
  if (method = symbol.to_s).sub!(/\=$/, '')
    options[method.to_sym] = args.first
  else
    options[method.to_sym]
  end
end

.optionsObject

stores a hash of options given to the configure block.



16
17
18
# File 'lib/appmospheres_audit.rb', line 16

def options
  @options ||= {}
end