Class: Camping::Mab

Inherits:
Markaby::Builder
  • Object
show all
Includes:
Views
Defined in:
lib/camping-unabridged.rb,
lib/camping.rb

Overview

The Mab class wraps Markaby, allowing it to run methods from Camping::Views and also to replace :href and :action attributes in tags by prefixing the root path.

Instance Method Summary collapse

Methods included from Controllers

D, R

Methods included from Helpers

#/, #R, #errors_for

Instance Method Details

#tag!(*g, &b) ⇒ Object



597
598
599
600
601
# File 'lib/camping-unabridged.rb', line 597

def tag!(*g,&b)
    h=g[-1]
    [:href,:action].each{|a|(h[a]=self/h[a])rescue 0}
    super 
end