Sha256: fd31f5102b0543a1a32bfafbaf07703a6676b069274530859335100e18e49946

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

# Logga

Provides attribute logging functionality to ActiveRecord objects.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'logga'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install logga

## Usage

Add this to your model:

```ruby
class Order < ApplicationRecord
  add_log_entries_for :create, :update
end

```

So that new LogEntry records attached to a given Order instance will be created whenever a new one is created or
modified.

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`.

To release a new version, update the version number in `version.rb`.

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/boxt/logga.

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

## TODOs

* Write some tests
* Improve the documentation

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
logga-1.6.2 README.md
logga-1.6.1 README.md
logga-1.6.0 README.md