Sha256: 85d53c899d1716cd913ebaa439ebd1fbcd7bca031bb43c83a61f63f2b5fc9ce2
Contents?: true
Size: 424 Bytes
Versions: 2
Compression:
Stored size: 424 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! @attributes[:_n] ||= view.controller_path.split('/')[0...-1].join('/').presence end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
effective_datatables-4.7.1 | app/models/effective/effective_datatable/attributes.rb |
effective_datatables-4.7.0 | app/models/effective/effective_datatable/attributes.rb |