Sha256: ad4777861cdd1bb7ff6eb9c07322e82159b54dd56c2ce0eeff1258870e1de827

Contents?: true

Size: 598 Bytes

Versions: 4

Compression:

Stored size: 598 Bytes

Contents

if Rails.env != 'test' then
  Cobregratis::Base.site = 'https://example.com.i'
  # For backward compatability
  if Cobregratis::Base.respond_to? :user
    Cobregratis::Base.user = 'my_fancy_username'
    Cobregratis::Base.password = 'my_fancy_password'
  else 
    Cobregratis::Base.site = 'https://my_fancy_username:my_fancy_password@example.com.i'
  end
  # The cache store can be anything that ActiveSupport can handle
  Cobregratis::Base.connection.cache_store = ActiveSupport::Cache.lookup_store :mem_cache_store
  Cobregratis::Base.connection.store_options = { :expires_in => 60.seconds }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cobregratis-0.3.0 examples/config_initializers_cobregratis.rb
cobregratis-0.2.2 examples/config_initializers_cobregratis.rb
cobregratis-0.2.1 examples/config_initializers_cobregratis.rb
cobregratis-0.1.0 examples/config_initializers_cobregratis.rb