Skip to content

shipiev/journalized_for

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JournalizedFor

Plug-in for Redmine. It journalize has_one and has_many association

Installation

Add this line to your application's Gemfile:

gem 'journalized_for'

And then execute:

$ bundle

Or install it yourself as:

$ gem install journalized_for

Usage

Model

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

Contributing

  1. Fork it ( http://github.com//journalized_for/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Plug-in for Redmine. It journalize has_one and has_many association

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages