Sha256: 5f508c188115a8156c0d553972dbd2f899ed9031b6b2cdcae8ab9ab25de40dd2
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require 'active_support' require 'pickle/version' 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 module Pickle class << self def config @config ||= Config.new end def configure(&block) config.configure(&block) end def parser(options = {}) @parser ||= Parser.new({:config => config}.merge(options)) end end end # 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 to regexps for use in step definitions class << self delegate :capture_model, :capture_fields, :capture_factory, :capture_plural_factory, :capture_predicate, :to => 'Pickle.parser' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ianwhite-pickle-0.1.5 | lib/pickle.rb |