Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Don't load ActionView unless Rails defined #559

Closed
wants to merge 1 commit into from

2 participants

@Paulche

No description provided.

@seuros
Collaborator

I want to do it with railtie.
The helpers won't be included in v4.

@seuros seuros closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 18, 2014
  1. @Paulche
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/acts-as-taggable-on.rb
View
2  lib/acts-as-taggable-on.rb
@@ -1,7 +1,7 @@
require 'active_record'
require 'active_record/version'
require 'active_support/core_ext/module'
-require 'action_view'
+require 'action_view' if defined?(Rails)
require_relative 'acts_as_taggable_on/engine' if defined?(Rails)
Something went wrong with that request. Please try again.