Releases: ledermann/unread
Releases · ledermann/unread
v0.8.1
v0.8.0
- Allows STI subclasses to be defined as readable without affecting parent classes (PR #68, thanks to @tangopium)
- Support for
pluralize_table_names = false
(#69, thanks to @rlow) - Support for Rails 5
- Some cleanup
v0.7.1
v0.7.0
This release has some important improvements:
- Multiple reader classes are allowed (#63, thanks to @everplays)
acts_as_reader
: Replaced:scope
option by class method (2a1649e)acts_as_reader
: Theafter_create
callback is customizable (1e4b8f2)- Improved performance of
cleanup_read_marks!
(#64, thanks to @pyro2927) - Added
bin/console
(useful for developing the gem) - Lots of code and spec cleanup
If you are using an older release of this gem, please read the the upgrade notes!
v0.6.3
v0.6.2
v0.6.1
v0.6.0
New features
- Readables: Added
.read_by
as the inverse ofunread_by
(#53, thanks to @mikeki) - Readers: Added
.have_read
and.have_not_read
(#55, thanks to @mikeki)
Changes
acts_as_reader
: For setting scope (previously undocumented feature), the option now takes a lambda instead of an array of symbols (0b91458)- Used quoting for column/table names in SQL statements
Bugfixes
v0.5.0
- acts_as_reader: Added optional
:scopes
option - .mark_array_as_read: Better performance
- Rails 4.2 compatibility (thanks to @JuanitoFatas)
- Improved error messages (thanks to @kyuden)
- Migration: Removed harmful string length limit
- Use rails standard way reference to declare polymorphic associations (thanks to @wangqiang1208)
v0.4.0
- Testsuite migrated to RSpec
- Travis: Test against Rails 4.0/4.1 and Ruby 2.1.0
- Generated migration fixed to be .rb file (PR #36, thanks to @jarinudom)
- In queries, use ReadMark.table_name to allow custom table names (PR #39, thanks to @felipetio)