a45f502f44
* specs are working again * added railitie * added missing migration (acts-as-taggable) * cleanups
20 lines
299 B
Ruby
20 lines
299 B
Ruby
module Refinery
|
|
module WordPress
|
|
class Category
|
|
attr_accessor :name
|
|
|
|
def initialize(text)
|
|
@name = text
|
|
end
|
|
|
|
def ==(other)
|
|
name == other.name
|
|
end
|
|
|
|
def to_refinery
|
|
BlogCategory.find_or_create_by_title(name)
|
|
end
|
|
end
|
|
end
|
|
end
|