Ok, more like this ?


On Thu, Jan 2, 2014 at 5:33 PM, Rafael Mendonça França <
notifications@github.com> wrote:

> In lib/prototype-rails.rb:
>
> > +        require 'action_view/helpers/scriptaculous_helper'
> > +        require 'action_view/template/handlers/rjs'
> > +        require 'prototype-rails/javascript_helper'
> > +        require 'prototype-rails/rendering'
> > +
> > +        ActionView::Base.class_eval do
> > +          cattr_accessor :debug_rjs
> > +          self.debug_rjs = false
> > +        end
> > +
> > +        ActionView::Base.class_eval do
> > +          include ActionView::Helpers::PrototypeHelper
> > +          include ActionView::Helpers::ScriptaculousHelper
> > +        end
> > +
> > +        if Rails.env.test? # do not trigger test-case autoload in development/production
>
> Sorry. I was talking about only the Rails.env check and the conditional
> inclusion of modules at TestCase. The rest of the code is fine to be in
> that file
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rails/prototype-rails/pull/28/files#r8628297>
> .
>