Skip to content

Proposal: history_tracks method should be dynamically named #117

Open
@johnnyshields

Description

@johnnyshields

Currently suppose we have a trackable model like Customer. Then we have:

@customer.history_tracks     #=> returns criteria for tracker class

The problem is that many apps set tracker_class_name to something else, such as Audit, etc. So I think it would be better to infer this method name from the tracker_class_name, such as:

@customer.audits    #=> returns criteria for tracker class

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions