Sha256: 8becd97388a025d999631f6e124676bdaad33f56f06bd2465551b0c81891eb2b
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
module Ropenlayer class Category < ActiveRecord::Base set_table_name :ropenlayer_categories belongs_to :mapper, :polymorphic => true #before_save :ensure_format, Proc.new {|category| category.color.match(/^\#/) ? '' : category.color = "##{ category.color }" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ropenlayer-0.3.0 | lib/ropenlayer/category.rb |