Sha256: ffbb9ddbb686d38b09969233d2aeed2f6a050d61b1d57e24353e0a5410d2815b
Contents?: true
Size: 333 Bytes
Versions: 12
Compression:
Stored size: 333 Bytes
Contents
module Pulitzer class ContentElementType < ActiveRecord::Base has_many :post_type_content_element_types, dependent: :destroy def type name.downcase.to_sym end %i(text image video).each do |content_type| define_method "#{content_type}_type?" do type == content_type end end end end
Version data entries
12 entries across 12 versions & 1 rubygems