Sha256: 247b70bcb798b97eaea8e9ddacf452aada1e50680d803f38c77d4e898f7d4c25
Contents?: true
Size: 491 Bytes
Versions: 3
Compression:
Stored size: 491 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 return name unless table table_name = table.name.gsub('_table', '') name.gsub("#{table_name}_", '') end end end
Version data entries
3 entries across 3 versions & 1 rubygems