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,277
  • 3
  • 30
  • 48

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,822
  • 2
  • 35
  • 40