# File lib/action_view/helpers/upload_progress_helper.rb, line 400 def upload_progress_text(state=nil) eval case when state then @@default_messages[state.to_sym] when upload_progress.nil? || !upload_progress.started? then @@default_messages[:begin] when upload_progress.finished? then @@default_messages[:finish] else @@default_messages[:update] end end