Sha256: e95bf04ba03fd0df89c2ea48ff935e8df3cd31ed2f4ff821ea12ffb654d391a3

Contents?: true

Size: 209 Bytes

Versions: 2

Compression:

Stored size: 209 Bytes

Contents

module Kiosk
  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

2 entries across 2 versions & 1 rubygems

Version Path
ksk-0.1.0 lib/actives/category.rb
ksk-0.0.2 lib/actives/category.rb