Sha256: f6b7778a58fc5b9c04c4da63603d1dde376210a0e655124b88c5519741567169

Contents?: true

Size: 522 Bytes

Versions: 10

Compression:

Stored size: 522 Bytes

Contents

require "record_history/version"
require "record_history/record_history_model"
require "record_history/controller"
require "record_history/has_record_history"

module RecordHistory
  
  @@config = {}

  def self.author=(value)
    config[:author] = value
  end

  def self.author
    config[:author]
  end

  private

  def self.config
    @@config
  end

end

ActiveSupport.on_load(:active_record) do
  include RecordHistory::Model
end

ActiveSupport.on_load(:action_controller) do
  include RecordHistory::Controller
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
record_history-0.9.1 lib/record_history.rb
record_history-0.9.0 lib/record_history.rb
record_history-0.8.9 lib/record_history.rb
record_history-0.8.8 lib/record_history.rb
record_history-0.8.7 lib/record_history.rb
record_history-0.8.6 lib/record_history.rb
record_history-0.8.5 lib/record_history.rb
record_history-0.8.4 lib/record_history.rb
record_history-0.8.3 lib/record_history.rb
record_history-0.8.2 lib/record_history.rb