lib/peaty/story.rb in peaty-0.3.0 vs lib/peaty/story.rb in peaty-0.4.0
- old
+ new
@@ -1,10 +1,10 @@
module Peaty
class Story < Base
def story_type
- self.attributes["story_type"].to_sym
+ self.attributes["story_type"].to_sym if story_type?
end
alias type story_type
# chores, bugs, releases may or may not have estimates
def estimate