Class: Spring::Commands::Ridgepole
- Inherits:
-
Object
- Object
- Spring::Commands::Ridgepole
- Defined in:
- lib/spring/commands/ridgepole.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/spring/commands/ridgepole.rb', line 6 def call require 'ridgepole' constants = ActiveRecord::ConnectionAdapters.constants constants.select! { |c| c.match?(/Adapter$/) && c != :AbstractAdapter } constants.each do |constant| ActiveRecord::ConnectionAdapters.const_get(constant).prepend( ::Ridgepole::Ext::AbstractAdapter::DisableTableOptions ) end load Gem.bin_path('ridgepole', 'ridgepole') end |