lib/woyo/world/way.rb in woyo-world-0.0.2 vs lib/woyo/world/way.rb in woyo-world-0.0.3
- old
+ new
@@ -2,10 +2,10 @@
module Woyo
class Way < WorldObject
- attributes :name, :description
+ attributes :description, name: lambda { |this| this.id.to_s.capitalize }
def from
@from ||= context
end