Class: Caboose::PageTemplateCategory
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Caboose::PageTemplateCategory
- Defined in:
- app/models/caboose/page_template_category.rb
Class Method Summary collapse
Class Method Details
.all_options(blank) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/models/caboose/page_template_category.rb', line 7 def self.(blank) if blank = [{'value' => '','text' => ''}] else = [] end PageTemplateCategory.order(:title).all.each do |s| << { 'value' => s.id, 'text' => s.title } end return .to_json end |