module RailsLazyCommands

Public Instance Methods

clear() click to toggle source
# File lib/rails_lazy_commands.rb, line 7
def clear
  Rails.cache.clear
end
log(message=nil, args={}) click to toggle source
# File lib/rails_lazy_commands.rb, line 3
def log(message=nil, args={})
  Rails.logger.debug(print_message(message, args))
end
now() click to toggle source
# File lib/rails_lazy_commands.rb, line 15
def now
  Time.current
end
today() click to toggle source
# File lib/rails_lazy_commands.rb, line 11
def today
  Date.current
end

Private Instance Methods

print_message(message, args) click to toggle source