Sha256: 46cf4fc267b11d7d4d9c573af8fd687fe16e5f625a98105c160024008d2c6fd6
Contents?: true
Size: 479 Bytes
Versions: 17
Compression:
Stored size: 479 Bytes
Contents
module Effective module EffectiveDatatable module Attributes private def assert_attributes! if datatables_ajax_request? || datatables_inline_request? raise 'expected attributes to be present' unless attributes.present? end end def load_attributes! return unless view.respond_to?(:controller_path) @attributes[:namespace] ||= view.controller_path.split('/')[0...-1].join('/') end end end end
Version data entries
17 entries across 17 versions & 1 rubygems