module LogBook

Constants

VERSION

Public Class Methods

action=(val) click to toggle source
# File lib/rails_log_book.rb, line 45
def action=(val)
  LogBook::Store.tree.action = val
end
author=(val) click to toggle source
# File lib/rails_log_book.rb, line 49
def author=(val)
  LogBook::Store.tree.author = val
end
disable_recording() click to toggle source
# File lib/rails_log_book.rb, line 37
def disable_recording
  LogBook::Store.recording_enabled = false
end
enable_recording() click to toggle source
# File lib/rails_log_book.rb, line 41
def enable_recording
  LogBook::Store.recording_enabled = true
end
record_squashing_enabled() click to toggle source
# File lib/rails_log_book.rb, line 33
def record_squashing_enabled
  LogBook::Store.record_squashing || LogBook.config.record_squashing
end
recording_enabled() click to toggle source
# File lib/rails_log_book.rb, line 29
def recording_enabled
  LogBook::Store.recording_enabled || LogBook.config.always_record
end
with_recording() { || ... } click to toggle source
# File lib/rails_log_book.rb, line 17
def with_recording
  recording_was_disabled = recording_enabled
  enable_recording
  LogBook::Store.tree = LogBook::Tree.new

  yield

  LogBook::SaveRecords.call
ensure
  disable_recording unless recording_was_disabled
end