lib/lockbox.rb in lockbox-0.6.0 vs lib/lockbox.rb in lockbox-0.6.1

- old
+ new

@@ -25,9 +25,14 @@ Lockbox::LogSubscriber.attach_to :lockbox end if defined?(ActiveSupport.on_load) ActiveSupport.on_load(:active_record) do + # TODO raise error in 0.7.0 + if ActiveRecord::VERSION::STRING.to_f <= 5.0 + warn "Active Record version (#{ActiveRecord::VERSION::STRING}) not supported in this version of Lockbox (#{Lockbox::VERSION})" + end + extend Lockbox::Model extend Lockbox::Model::Attached ActiveRecord::Calculations.prepend Lockbox::Calculations end