0

Possible Duplicate:
Ruby’s double colon (::) operator usage differences

I've made a font-awesome plugin for Rails, in lib/rails-font-awesome.rb

module Rails
  module Font
    module Awesome
      class Engine < ::Rails::Engine
      end
    end
  end
end

Can I use Rails::Engine instead?

Community
  • 1
  • 1
goofansu
  • 2,247
  • 3
  • 27
  • 44

1 Answers1

0

:: before Rails tells this to skip the normal traversing up the hierarchy to find the class and just go straight to the top.

nowk
  • 32,271
  • 2
  • 33
  • 40