lib/coffeelint.rb in coffeelint-0.2.1 vs lib/coffeelint.rb in coffeelint-0.2.2
- old
+ new
@@ -2,10 +2,10 @@
require 'execjs'
require 'coffee-script'
require 'json'
module Coffeelint
- require 'coffeelint/railtie' if defined?(Rails)
+ require 'coffeelint/railtie' if defined?(Rails::Railtie)
def self.path()
@path ||= File.expand_path('../../coffeelint/lib/coffeelint.js', __FILE__)
end