Skip to content

Commit

Permalink
Remove method deprecated in merit <2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tute committed Aug 30, 2019
1 parent 313ac06 commit be15e47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 0 additions & 9 deletions app/models/merit/badge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ def find_by_name_and_level(name, level)
badge
end

# DEPRECATED: `last_granted` will be removed from merit, please refer to:
# https://github.com/tute/merit/wiki/How-to-show-last-granted-badges
def last_granted(options = {})
warn '[merit] [DEPRECATION] `last_granted` will be removed from merit, please refer to: https://github.com/tute/merit/wiki/How-to-show-last-granted-badges'
options[:since_date] ||= 1.month.ago
options[:limit] ||= 10
BadgesSash.last_granted(options)
end

# Defines Badge#meritable_models method, to get related
# entries with certain badge. For instance, Badge.find(3).users
# orm-specified
Expand Down
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# https://github.com/colszowka/simplecov/pull/104
add_group 'Merit', 'lib'
add_group 'DummyApp', 'test/dummy'
add_filter 'lib/generators'
add_filter 'test/dummy/config/initializers'
end
SimpleCov.start 'rubygem'
Expand Down

0 comments on commit be15e47

Please sign in to comment.