module Silverdot::LocalizeHelper
Public Class Methods
included(base)
click to toggle source
# File lib/silverdot/helpers/localize_helper.rb, line 3 def self.included(base) base.alias_method_chain :localize, :alternative end
Public Instance Methods
localize_with_alternative(*args)
click to toggle source
# File lib/silverdot/helpers/localize_helper.rb, line 7 def localize_with_alternative(*args) if args[0].is_a?(Alternative) args[0] else localize_without_alternative(*args) end end
Also aliased as: l