Skip to content

Commit 10ae8dc

Browse files
authored
Revert usage of delegate method (#522)
* Revert usage of delegate method * Update changelog
1 parent 6b97e77 commit 10ae8dc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
### Added
99
- Indonesian translations. ([#505](https://github.com/seejohnrun/ice_cube/pull/505)) by [@achmiral](https://github.com/achmiral)
1010

11+
### Changed
12+
- Removed use of `delegate` method added in [66f1d797](https://github.com/ice-cube-ruby/ice_cube/commit/66f1d797092734563bfabd2132c024c7d087f683) , reverting to previous implementation. ([#522](https://github.com/ice-cube-ruby/ice_cube/pull/522)) by [@pacso](https://github.com/pacso)
13+
1114
### Fixed
1215
- Fix for weekly interval results when requesting `occurrences_between` on a narrow range ([#487](https://github.com/seejohnrun/ice_cube/pull/487)) by [@jakebrady5](https://github.com/jakebrady5)
1316
- When using a rule with hour_of_day validations, and asking for occurrences on the day that DST skips forward, valid occurrences would be missed. ([#464](https://github.com/seejohnrun/ice_cube/pull/464)) by [@jakebrady5](https://github.com/jakebrady5)

lib/ice_cube/i18n.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ module IceCube
44
module I18n
55
LOCALES_PATH = File.expand_path(File.join("..", "..", "..", "config", "locales"), __FILE__)
66

7-
class << self
8-
delegate :t, :l, to: :backend
7+
def self.t(*args, **kwargs)
8+
backend.t(*args, **kwargs)
9+
end
10+
11+
def self.l(*args, **kwargs)
12+
backend.l(*args, **kwargs)
913
end
1014

1115
def self.backend

0 commit comments

Comments
 (0)