Sha256: 3ca67dfaab8e263c4c60bf7b276ab501336b6bed2011662c3ac894e2613ed75f

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 Bytes

Contents

if ActiveRecord::VERSION::MAJOR < 4
  require 'active_record/observer'
else
  begin
    require 'rails/observers/activerecord/active_record'
  rescue LoadError => _
    $stderr.puts(<<-MSG)
ERROR: Failed loading rails-observers dependencies.
If you are using Rails 4+, make sure `gem 'rails-observers'` is in your Gemfile.
    MSG
    raise
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lazy_observers-0.2.0 lib/lazy_observers/rails_observer.rb