attr :location_string

7 views
Skip to first unread message

Christopher Frost

unread,
Jun 25, 2013, 12:26:14 PM6/25/13
to rubyonra...@googlegroups.com
Hi,

I have come across attr :location_string inside a class definition in
Rails application.

class Web < class Params
attr :location_string

def ....
end

....
end


I know how attr_accessor, attr_reader or attr_writer works.
But I don't have any idea on attr in Rails.

Can you kindly explain what it does?

Thanks,
Christopher

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages