Module: PrintingPress::Controller::ClassMethods

Defined in:
lib/printing_press/controller.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_publication(models = [], options = {}) ⇒ Object



11
12
13
14
15
16
# File 'lib/printing_press/controller.rb', line 11

def acts_as_publication(models = [], options = {})
	models = [ models] unless models.is_a?(Array) 
	
	class_attribute :printing_press_models
	self.printing_press_models = models
end