Thanks for clarifying Rob, I had that feeling, but its great to know ;)

On 7/9/13, Robert Guthrie <notifications@github.com> wrote:
>> @@ -33,4 +36,16 @@ def extract_locale_from_accept_language_header
>>        I18n.default_locale
>>      end
>>    end
>> +
>> +  def render_raincheck_error(exception)
>> +    if request.xhr?
>> +      raise exception
>> +    else
>> +      @error_raincheck = ErrorRaincheck.new({action: action_name,
>> controller: controller_name})
>
> they are methods provded by the current controller instance. An action
> sometimes has to know :)
>
>
> On Tue, Jul 9, 2013 at 9:21 PM, Aaron Thornton
> <notifications@github.com>wrote:
>
>> In app/controllers/application_controller.rb:
>>
>> > @@ -33,4 +36,16 @@ def extract_locale_from_accept_language_header
>> >        I18n.default_locale
>> >      end
>> >    end
>> > +
>> > +  def render_raincheck_error(exception)
>> > +    if request.xhr?
>> > +      raise exception
>> > +    else
>> > +      @error_raincheck = ErrorRaincheck.new({action: action_name,
>> > controller: controller_name})
>>
>> Can you explain where action_name and controller_name come from?
>> This may not be an error, I am just not particularly familiar with
>> exceptions. I am keen to know.
>>
>> —
>> Reply to this email directly or view it on
>> GitHub<https://github.com/loomio/loomio/pull/857/files#r5085677>
>> .
>>
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/loomio/loomio/pull/857/files#r5085708
>