Sha256: dcda67ecb077669be5e088afa7cb17c1c879f5898226051900634a40e5b48129

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

require 'rails'
require 'persistent_settings'
require 'logger'

ActiveRecord::Migration.verbose = false
ActiveRecord::Base.logger = Logger.new("test.log")
::ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
::ActiveRecord::Schema.define(:version => 1) do
  create_table :settings do |t|
    t.column :var, :string
    t.column :value, :string
  end
end

module Rails
  RAILS_CACHE = ActiveSupport::Cache::MemoryStore.new
end

class Settings < ActiveRecord::Base
  include Persistent::Settings
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
persistent_settings-1.3.0 features/support/env.rb