[LRUG] Enforcing uniqueness
Adam Carlile
adam at benchmedia.co.uk
Mon Nov 14 06:20:23 PST 2011
Tbe state_machine gem is worth working with, allows some great state
specific methods. Even state specific AR class methods, such as certain
model validations based upon state.
Allows for an awful lot of flexibility.
Bench Media
-
Adam Carlile
Web Professional
www.benchmedia.co.uk
Twitter @frozenproduce
Mobile +44 7590 673597
On 14/11/2011 13:02, "Andrew Stewart" <boss at airbladesoftware.com> wrote:
>
>On 14 Nov 2011, at 13:31, Jocke Selin wrote:
>> Yes it does, very good. How are you planning on implementing the state?
>
>I think a simple string would do the trick, but I'll have a go with the
>state_machine gem too.
>
>Cheers,
>Andy
>-------
>http://airbladesoftware.com
>_______________________________________________
>Chat mailing list
>Chat at lists.lrug.org
>http://lists.lrug.org/listinfo.cgi/chat-lrug.org
More information about the Chat
mailing list