Sha256: 3bac793d5366e18b21830ee40a7b05742fddd75b53fa638ac1864247177830cd
Contents?: true
Size: 310 Bytes
Versions: 32
Compression:
Stored size: 310 Bytes
Contents
module Pulitzer module PostTypeElement def self.included(klass) klass.before_save :handle_sort_order end def highest_sibling_sort self.post_type_version.highest_element_sort end def handle_sort_order self.sort_order ||= self.highest_sibling_sort + 1 end end end
Version data entries
32 entries across 32 versions & 1 rubygems