Sha256: d2597d8e86d230ea85882dd85a176ef18ebb3313e8b525d9e5702f9b551f2f5a

Contents?: true

Size: 207 Bytes

Versions: 20

Compression:

Stored size: 207 Bytes

Contents

module Ksk
  module Category
    extend ActiveSupport::Concern

    included do
      self.table_name = 'categories'
      has_many :posts

      validates_length_of :title, :minimum => 3
    end

  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ksk-0.2.12 lib/actives/category.rb
ksk-0.2.11 lib/actives/category.rb
ksk-0.2.10 lib/actives/category.rb
ksk-0.2.9 lib/actives/category.rb
ksk-0.2.8 lib/actives/category.rb
ksk-0.2.7 lib/actives/category.rb
ksk-0.2.6 lib/actives/category.rb
ksk-0.2.5 lib/actives/category.rb
ksk-0.2.4 lib/actives/category.rb
ksk-0.2.3 lib/actives/category.rb
ksk-0.2.2 lib/actives/category.rb
ksk-0.2.1 lib/actives/category.rb
ksk-0.2.0 lib/actives/category.rb
ksk-0.1.7 lib/actives/category.rb
ksk-0.1.6 lib/actives/category.rb
ksk-0.1.5 lib/actives/category.rb
ksk-0.1.4 lib/actives/category.rb
ksk-0.1.3 lib/actives/category.rb
ksk-0.1.2 lib/actives/category.rb
ksk-0.1.1 lib/actives/category.rb