I have hash:
{"default_list" => {
        "ws" => 15,
        "ret"=> 50},
    "ret_discount" => {
        5 => 5000,
        10=>10000,
        15=>15000,
        20=>30000   }}
Where better to keep it? Without database.
-- 
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/7bVPErrNt2oJ.
For more options, visit https://groups.google.com/groups/opt_out.
On 5 August 2012 20:12, Дмитрий Снегирев <rikkitp-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have hash: > > {"default_list" => { > "ws" => 15, > "ret"=> 50}, > "ret_discount" => { > 5 => 5000, > 10=>10000, > 15=>15000, > 20=>30000 }} > > Where better to keep it? Without database.In memory? In code? As a constant? In a yaml file? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.