Skip to content

Commit

Permalink
Issue-144: use custom methods repo directly for clarity when performi…
Browse files Browse the repository at this point in the history
…ng initial definition loading
  • Loading branch information
Phil Trimble committed Apr 17, 2016
1 parent 66d3514 commit 00b1015
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/holidays/load_all_definitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def call
"calculate_day_of_month(year, month, day, wday)" => Holidays.method(:calculate_day_of_month).to_proc,
}


Holidays.merge_defs([], {}, global_methods)
Holidays::DefinitionFactory.custom_methods_repository.add(global_methods)
end
end
end
Expand Down

0 comments on commit 00b1015

Please sign in to comment.