Module: N::Scaffolding

Included in:
Controller
Defined in:
lib/nitro/scaffold.rb

Defined Under Namespace

Modules: SingletonMethods

Class Method Summary collapse

Class Method Details

.append_features(base) ⇒ Object

Ruby is sometimes VERY surprising, the following trick is needed to include singleton methods in other classes.



14
15
16
17
# File 'lib/nitro/scaffold.rb', line 14

def self.append_features(base)
	super
	base.extend(SingletonMethods)
end