Sha256: deb9feb16aa15df17042936b3bac259b6698d21619b987064e7d6446684ff106

Contents?: true

Size: 793 Bytes

Versions: 1

Compression:

Stored size: 793 Bytes

Contents

require 'active_support'
require 'pickle/adapter'
require 'pickle/config'
require 'pickle/parser'
require 'pickle/parser/with_session'
require 'pickle/session'
require 'pickle/injector'

# make the parser aware of models in the session (for fields refering to models)
Pickle::Parser.send :include, Pickle::Parser::WithSession

# inject the pickle session into integration session if we have one (TODO: inject into merb etc?)
if defined?(ActionController::Integration::Session)
  Pickle::Injector.inject Pickle::Session, :into => ActionController::Integration::Session
end

# shortcuts for useful regexps when defining pickle steps
CaptureModel         = Pickle.parser.capture_model
CapturePluralFactory = Pickle.parser.capture_plural_factory
CaptureFields        = Pickle.parser.capture_fields

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ianwhite-pickle-0.1.4 lib/pickle.rb