Sha256: c6907037dfac072f80cdeb2424b4c2a4252444563906c79ffd7249e92f450f09

Contents?: true

Size: 419 Bytes

Versions: 7

Compression:

Stored size: 419 Bytes

Contents

module Tableficate
  module ActiveRecordExtension
    extend ActiveSupport::Concern

    included do
      extend Tableficate::Finder

      self.scope :tableficate_ext, ->{} do
        def tableficate_add_data(key, value)
          @tableficate_data ||= {}
          @tableficate_data[key] = value
        end

        def tableficate_get_data
          @tableficate_data || {}
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tableficate-0.3.0 lib/tableficate/active_record_extension.rb
tableficate-0.2.1 lib/tableficate/active_record_extension.rb
tableficate-0.2.0 lib/tableficate/active_record_extension.rb
tableficate-0.1.3 lib/tableficate/active_record_extension.rb
tableficate-0.1.2 lib/tableficate/active_record_extension.rb
tableficate-0.1.1 lib/tableficate/active_record_extension.rb
tableficate-0.0.1 lib/tableficate/active_record_extension.rb