removed Time#map alias to Time#map_each as it was

causing issues with ActiveRecord
This commit is contained in:
2010-08-23 12:40:32 +03:00
parent ea6d87e35f
commit 4afd3f84d5

View File

@@ -75,7 +75,6 @@ module TimeExt
def map_each(unit, options = {}, &block)
iterate(unit, options.merge(:map_result => true), &block)
end
alias :map :map_each
# Executes passed block for each "unit" of time specified, returning an array with the return values from passed block. Additionally the time object passed into the block is set to the beginning of specified "unit".
def map_beginning_of_each(unit, options = {}, &block)