I'd do:
module MyApp
@config = {}
def self.[](k) @config[k] end
def self.[]=(k,v) @config[k] = v end
end
-- Yehuda
On Mon, Mar 16, 2009 at 8:57 AM, Rafael George <[email protected]>wrote:
>
> Hi guys,
>
> Which is the best way to put global variables in my application things
> like 'items_per_page' for my pagination needs.
>
> Thanks.
>
> --
> Rafael George
>
> >
>
--
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---