Module: Rails::Sequel

Defined in:
lib/sequel-rails.rb,
lib/sequel-rails/setup.rb,
lib/sequel-rails/railtie.rb,
lib/sequel-rails/runtime.rb,
lib/sequel-rails/storage.rb,
lib/sequel-rails/version.rb,
lib/sequel-rails/migrations.rb,
lib/sequel-rails/configuration.rb,
lib/sequel-rails/session_store.rb,
lib/sequel-rails/railties/i18n_support.rb,
lib/sequel-rails/railties/controller_runtime.rb

Defined Under Namespace

Modules: I18nSupport, Railties Classes: Configuration, Migrations, Railtie, SessionStore, Storage

Constant Summary collapse

VERSION =
"0.3.10"

Class Method Summary collapse

Class Method Details

.reset_runtimeObject



5
6
7
8
9
10
# File 'lib/sequel-rails/runtime.rb', line 5

def reset_runtime
  @runtime ||= 0
  
  rt, @runtime = @runtime, 0
  rt
end

.setup(environment) ⇒ Object



12
13
14
# File 'lib/sequel-rails/setup.rb', line 12

def self.setup(environment)
  ::Sequel.connect({:logger => configuration.logger}.merge(::Rails::Sequel.configuration.environment_for(environment.to_s)))
end

.storageObject



5
6
7
# File 'lib/sequel-rails/storage.rb', line 5

def self.storage
  Storage
end