-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do not load test-case in development #28
Conversation
can you also pick this to the rails 3 branch ? |
bump |
ActionView::TestCase.class_eval do | ||
include ActionView::Helpers::PrototypeHelper | ||
include ActionView::Helpers::ScriptaculousHelper | ||
if Rails.env.test? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This entire code should be inside the Railtie
better ? |
include ActionView::Helpers::ScriptaculousHelper | ||
end | ||
|
||
if Rails.env.test? # do not trigger test-case autoload in development/production |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 GitHubhttps://github.com//pull/28/files#r8628297
.
👍 |
Can you also merge and release this? |
Sure! It is in my TODO list. Will be the first thing I'll do tomorrow |
Hmm tomorrow is gone :) |
yes, yes. Sorry I have a lot of work to do. But you can always install a gem pointing to your fork using bundler if you have hurry 😉 |
pff you only maintain like 2 or 300 projects, how hard can that be ;) On Mon, Jan 6, 2014 at 9:23 AM, Rafael Mendonça França <
|
do not load test-case in development
Now I can work on this. Thanks ❤️ |
bump :) |
Really sorry but before releasing the gem I want to do some work. Like I said we don't need to hurry to release the gem since you can always use bundler. |
Sure, take your time :) On Mon, Jan 13, 2014 at 9:19 AM, Rafael Mendonça França <
|
I want to review all the open PR and issues and see if I can merge/fix something else before releasing, so the release will help more people |
no more PR's left except some 6month + olds, ready to release ? |
This would solve #32 on Rails 4.2. |
…-load"" This reverts commit bc80415.
…-load"" This reverts commit bc80415.
…-load"" This reverts commit bc80415.
…-load"" This reverts commit bc80415.
This reverts commit bc80415.
…-load"" This reverts commit bc80415.
@fxn @jeremy