Skip to content

Commit

Permalink
deal with 4.x -> 5.x instead of 4.1 -> 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
janxious committed Apr 4, 2016
1 parent e658618 commit edf65e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/expected_behavior/acts_as_archival.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def acts_as_archival(options = { })
callbacks = ['archive','unarchive']
if ActiveSupport::VERSION::STRING >= '5'
define_callbacks *[callbacks].flatten
elsif ActiveSupport::VERSION::STRING >= '4.1'
elsif ActiveSupport::VERSION::STRING >= '4'
define_callbacks *[callbacks, {:terminator => -> (_, result) { result == false }}].flatten
end
callbacks.each do |callback|
Expand Down

0 comments on commit edf65e4

Please sign in to comment.