Sha256: cdbab0fd2bb845ecd81e266694e24875faa60ec920c8675c60f2a305ec007428
Contents?: true
Size: 753 Bytes
Versions: 1
Compression:
Stored size: 753 Bytes
Contents
module Outpost module List class Column attr_accessor :attribute, :display, :position, :list, :quick_edit, :sortable, :default_sort_mode, :_display_helper, :header alias_method :quick_edit?, :quick_edit alias_method :sortable?, :sortable def initialize(attribute, list, attributes={}) @attribute = attribute.to_s @list = list @position = @list.columns.size @header = attributes[:header] || @attribute.titleize @display = attributes[:display] @quick_edit = !!attributes[:quick_edit] @sortable = !!attributes[:sortable] @default_sort_mode = attributes[:default_sort_mode] || List::DEFAULT_SORT_MODE end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
outpost-cms-0.0.3 | lib/outpost/list/column.rb |