lib/roda/plugins/named_routes.rb
def inherited(subclass)
          super
          nsr = subclass.opts[:namespaced_routes]
          opts[:namespaced_routes].each{|k, v| nsr[k] = v.dup}
        end
# Copy the named routes into the subclass when inheriting.
Copy the named routes into the subclass when inheriting.
Copy the named routes into the subclass when inheriting .
def inherited(subclass)
          super
          nsr = subclass.opts[:namespaced_routes]
          opts[:namespaced_routes].each{|k, v| nsr[k] = v.dup}
        end
def inherited ( subclass ) super nsr = subclass . opts [ :namespaced_routes ] opts [ :namespaced_routes ] . each { | k , v | nsr [ k ] = v . dup } end
Copy the named routes into the subclass when inheriting.
Copy the named routes into the subclass when inheriting .
subclass