Sha256: 01d7451134d1325438f80de20d9ee97236d816225d7569fceeb892ff0e8eddac
Contents?: true
Size: 303 Bytes
Versions: 72
Compression:
Stored size: 303 Bytes
Contents
# If you want to use this concern, you need to add a boolean field 'draggable' to # the model. module Concerns module Draggable extend ActiveSupport::Concern included do after_initialize do self.draggable = true if self.new_record? && draggable.nil? end end end end
Version data entries
72 entries across 72 versions & 1 rubygems