lib/ab_admin/concerns/silencer.rb in ab_admin-0.6.1 vs lib/ab_admin/concerns/silencer.rb in ab_admin-0.7.0
- old
+ new
@@ -1,10 +1,8 @@
-# -*- encoding : utf-8 -*-
module AbAdmin
module Concerns
module Silencer
-
def no_timestamps
original_setting = ActiveRecord::Base.record_timestamps
ActiveRecord::Base.record_timestamps = false
begin
yield
@@ -26,9 +24,8 @@
def full_silence(&block)
no_timestamps do
no_versions(&block)
end
end
-
end
end
end
\ No newline at end of file