Sha256: 987eafcadb4610b4f5edccc0fc2f0b38eac50d0a2576e2c76c9f5dde910adb22

Contents?: true

Size: 578 Bytes

Versions: 5

Compression:

Stored size: 578 Bytes

Contents

require 'active_support'
require 'pickle/version'
require 'pickle/adapter'
require 'pickle/config'
require 'pickle/parser'
require 'pickle/session'
require 'pickle/session/parser'

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

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
pickle-0.5.3 lib/pickle.rb
pickle-0.5.2 lib/pickle.rb
spbtv_pickle-0.5.2 lib/pickle.rb
spbtv_pickle-0.5.1 lib/pickle.rb
pickle-0.5.1 lib/pickle.rb