Plug-in for Redmine. It journalize has_one and has_many association
Add this line to your application's Gemfile:
gem 'journalized_for'
And then execute:
$ bundle
Or install it yourself as:
$ gem install journalized_for
class Attachment < ActiveRecord::Base
...
journalized_for :container, if: ->(object){ object.respond_to?(:journals) }, title: 'to_s'
...
end
Or
class Attachment < ActiveRecord::Base
...
journalized_for :container
...
end
- Fork it ( http://github.com//journalized_for/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request