Skip to content
Permalink
Browse files

Minor cleanups of multiton functionality.

  • Loading branch information...
JoergWMittag committed Oct 25, 2008
1 parent baa2071 commit 5dfba862ea7d8b78421bf5f94fd7a9d2de8a7373
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/tag.rb
@@ -7,7 +7,7 @@ class Tag
attr_reader :name
attr_accessor :description

def initialize name = nil, description = nil
def initialize name, description = nil
self.name = :"#{name}"
self.description = description unless description.nil?
end
@@ -16,7 +16,7 @@ def initialize name = nil, description = nil

attr_writer :name

def self.multiton_id *args
:"#{args.first}"
def self.multiton_id name, description = nil
return :"#{name}"
end
end

0 comments on commit 5dfba86

Please sign in to comment.
You can’t perform that action at this time.