I want to dynamically call variables defined in initializers. I have a created a file(brands.rb) in my initializers and it have some variable defined init like,
FEATURED_FASHION_BRAND=["something", "something"]
FEATURED_DIY_BRAND=["something", "something"]
so can I call this variables dynamically, I meant, something like this,
@name= params[:name]
FEATURED_"#{@name}"_BRAND
FEATURED_BRANDS[@name]or similar, instead of mucking about with dynamic variable names.brandstable, with a "featured" boolean field.