Sha256: 05a1c4f142844783c9c7deada3fa36cbad3b705ba9907d6b9e7598195634ceae
Contents?: true
Size: 543 Bytes
Versions: 1
Compression:
Stored size: 543 Bytes
Contents
module MotionPrime module CellSectionMixin attr_writer :table def table @table ||= options[:table] end def section_styles @section_styles ||= table.try(:cell_styles, self) || {} end def cell_type @cell_type ||= begin self.is_a?(BaseFieldSection) ? :field : :cell end end def cell_name self.class.cell_name || begin return name unless table table_name = table.name.gsub('_table', '') name.gsub("#{table_name}_", '') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-prime-0.4.2 | motion-prime/sections/_cell_section_mixin.rb |