Module: Burgundy::RouteHelpers

Extended by:
ActiveSupport::Concern
Included in:
Item
Defined in:
lib/burgundy/rails.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/burgundy/rails.rb', line 50

def eql?(other)
  other == self || item.eql?(other)
end

#routesObject Also known as: r



54
55
56
# File 'lib/burgundy/rails.rb', line 54

def routes
  self.class.routes
end

#to_paramObject



46
47
48
# File 'lib/burgundy/rails.rb', line 46

def to_param
  item.to_param
end