I want to do
current_user.field = User::????????
?
Where ??????????
would be whatever I wanted it to be
This what I'm trying to do
Given /^"([^\"]*)" is a(?:|n) "([^\"]*)"$/ do |arg1, arg2|
cur_user = User.find(:first, :conditions => ['name = ?', arg1])
cur_user.update_attributes(:role => User::arg2.constantize)
end
While constantize does't work for this use, I do know that it would work In Object.var.constantize context