Sha256: 13b2592c951a961e4002fe60beb42158f9202d29d503122b6b037b3467506cd4

Contents?: true

Size: 253 Bytes

Versions: 7

Compression:

Stored size: 253 Bytes

Contents

require 'active_support/concern'

module JupyterOnRails
  module Daru
    module ActiveRecordExt
      extend ::ActiveSupport::Concern

      included do
        scope :to_df, -> { ::Daru::DataFrame.from_activerecord(self) }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jupyter_on_rails-0.4.2 lib/jupyter_on_rails/daru/active_record_ext.rb
jupyter_on_rails-0.4.1 lib/jupyter_on_rails/daru/active_record_ext.rb
jupyter_on_rails-0.4.0 lib/jupyter_on_rails/daru/active_record_ext.rb
jupyter_on_rails-0.3.4 lib/jupyter_on_rails/daru/active_record_ext.rb
jupyter_on_rails-0.3.3 lib/jupyter_on_rails/daru/active_record_ext.rb
jupyter_on_rails-0.3.2 lib/jupyter_on_rails/daru/active_record_ext.rb
jupyter_on_rails-0.3.1 lib/jupyter_on_rails/daru/active_record_ext.rb