Skip to content

Commit

Permalink
Update code to work properly with Ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jsl committed Feb 21, 2012
1 parent a49ee80 commit e9f53a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pivotal_planning_poker/tracker_entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class TrackerEntity
attr_accessor :doc

def self.tracker_attribute(name, xpath)
raise ArgumentError, "Can't create an attribute over a method that exists #{self.name}##{name}!" if self.instance_methods.include?(name.to_s)
raise ArgumentError, "Can't create an attribute over a method that exists #{self.name}##{name}!" if self.instance_methods.include?(name.to_sym)

class_eval <<-EOS
def #{name}
Expand Down

0 comments on commit e9f53a6

Please sign in to comment.