I am using Cancan In my user model there is
ROLES = %w[admin user ram]
I want to bring the value from my own module .
all= Role.all
@all.each do |all|
all.name
end
Here i can carry all value that are in database from roll model. and i want to keep it inside %w[] like `
ROLES = %w[ all= Role.all
@all.each do |all|
all.name
end]
But I don know the format.