Sha256: 3fbdf6b0f70c201aae7c4797ec06142246582126f07935b0ae8e546566b81067

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

module OrderedTree
  module InstanceMethods
    module Misc
      protected

      def foreign_key_column
        :"#{ordered_tree_config[:foreign_key]}"
      end

      def order_column
        :"#{ordered_tree_config[:order]}"
      end

      private

      # Overwrite this method to define the scope of the list changes
      def scope_condition
        "1"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ordered_tree-0.1.5 lib/ordered_tree/instance_methods/misc.rb
ordered_tree-0.1.2 lib/ordered_tree/instance_methods/misc.rb