New Feature: Custom Model Names
Posted by jgehtland Fri, 02 Mar 2007 10:55:01 GMT
You asked for it (repeatedly) now you have it. Streamlined Edge now contains a syntax for overriding the default, reflective way a controller determines the model it is managing. For example, lets say you have a controller called:
EvaluationsController
that needs to control a model called
Eval.
Your controller now can look like this:
class EvaluationsController < ApplicationController layout 'streamlined' acts_as_streamlined streamlined_model 'Eval' end
Likewise, you can pass the class itself, instead of the class name. Either will work.



