Hallo Tom,

hast Du schonmal darüber nachgedacht die Methode is_group_editor? in ein
Module auszulagern und dieses einfach in beiden Controllern zu includen?

Sonnigen Gruß,
Bernd

Thomas R. Koll schrieb am 28.08.2007 16:41:
> Hallo,
> 
> Ich steh grad ein wenig auf dem Schlauch scheint mir, daher frag ich
> einfach mal.
> 
> Der Aufbau ist recht einfach:
> GroupsController
>   Groups::PagesController < PagesController
> PagesController
> 
> Die Vererbung des Groups::PagesController möcht ich gern behalten
> weil ich im Controller oft super rufe, allerdings brauch ich aus
> dem GroupsController eine Funktion is_group_editor? die ich so nicht
> aufrufen
> kann. In welche Richtung muss ich also weiter?
> 
> Sollte ich die Funktion is_group_editor? in das Model packen?
> 
> ciao, tom
> 
> -- 
> Thomas R. "TomK32" Koll <> http://tomk32.de <> http://kampodscha.com
> just a geek trying to change the world
> 
> 
> 
> _______________________________________________
> rubyonrails-ug mailing list
> [email protected]
> http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug
> 
> 

-- 
********************************

Bernd Stegelmann,
       Senior Software Engineer

Mobil     0177- 670 670 6
E-Mail    [EMAIL PROTECTED]

********************************

CAPITA Unternehmensberatung GmbH
Farnstraße 38
22335 Hamburg

Telefon 040 - 59 27 76
Telefax 040 - 50 61 63
E-Mail  [EMAIL PROTECTED]

Amtsgericht Hamburg, HRB 72014
Geschäftsführer: Christian Sage
USt-ID DE 204 147 342

********************************
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an