Sha256: 28bbb147f4747a3662960fd02e041e6af10870523182fe787d48ac968840b1ee

Contents?: true

Size: 631 Bytes

Versions: 5

Compression:

Stored size: 631 Bytes

Contents

require 'active_support/core_ext/hash'

module Streamit
  autoload :DSL,   'streamit/dsl'
  autoload :Store, 'streamit/store'
  
  module ORM
    autoload :ActiveRecord, 'streamit/orm/active_record'
  end
  
  # Set which store to use.
  #
  #   Streamit.set_store { Stream }
  #
  def self.set_store(&block)
    singleton_class.send :define_method, :store, &block
  end

  # Place holder for the store.
  def self.store; end
  
  def self.save_stream!(args)
    store.save_stream!(args)
  end
end

require 'streamit/engine'

require 'active_support/i18n'
I18n.load_path << File.expand_path('../streamit/locales/en.yml', __FILE__)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
streamit-0.0.5 lib/streamit.rb
streamit-0.0.4 lib/streamit.rb
streamit-0.0.3 lib/streamit.rb
streamit-0.0.1 lib/streamit.rb
streamit-0.0.0 lib/streamit.rb