Sha256: 021429b37f154fcfc009b54d662c58ccb2c9f86151b31db6e5e98508ffa2c032

Contents?: true

Size: 313 Bytes

Versions: 9

Compression:

Stored size: 313 Bytes

Contents

module Tableling

  module ActiveRecord

    module Model

      def initialize_model options = {}
        @model = options[:model]
        @field_options[:model] = @model
        @field_options[:modules] = Tableling::ActiveRecord::Field
      end

      def base_query
        @model
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tableling-rails-0.0.11 lib/tableling-rails/activerecord/model.rb
tableling-rails-0.0.10 lib/tableling-rails/activerecord/model.rb
tableling-rails-0.0.9 lib/tableling-rails/activerecord/model.rb
tableling-rails-0.0.8 lib/tableling-rails/activerecord/model.rb
tableling-rails-0.0.7 lib/tableling-rails/activerecord/model.rb
tableling-rails-0.0.6 lib/tableling-rails/activerecord/model.rb
tableling-rails-0.0.5 lib/tableling-rails/activerecord/model.rb
tableling-rails-0.0.3 lib/tableling-rails/activerecord/model.rb
tableling-rails-0.0.4 lib/tableling-rails/activerecord/model.rb