a45f502f44
* specs are working again * added railitie * added missing migration (acts-as-taggable) * cleanups
21 lines
305 B
Ruby
21 lines
305 B
Ruby
module Refinery
|
|
module WordPress
|
|
class Tag
|
|
attr_accessor :name
|
|
|
|
def initialize(text)
|
|
@name = text
|
|
end
|
|
|
|
def ==(other)
|
|
name == other.name
|
|
end
|
|
|
|
def to_refinery
|
|
::ActsAsTaggableOn::Tag.find_or_create_by_name(name)
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|