GithubHelp home page GithubHelp logo

Sharding data does not work. about wice_grid HOT 4 OPEN

yeomcda avatar yeomcda commented on June 5, 2024
Sharding data does not work.

from wice_grid.

Comments (4)

leikind avatar leikind commented on June 5, 2024

what does puts grid_data.class say?

from wice_grid.

yeomcda avatar yeomcda commented on June 5, 2024

Thats Model::ActiveRecord_Relation
I found one thing.
@grid = initialize_grid(grid_data.klass)
It is work!!

from wice_grid.

leikind avatar leikind commented on June 5, 2024

what is the version of the plugin?

initialize_grid(grid_data.klass) makes everything you did before useless (Model.using(:shard_name).where(id: 1))

from wice_grid.

yeomcda avatar yeomcda commented on June 5, 2024

This my project gem list.

Using rake 11.1.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.4
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.0.0
Using rack 1.6.4
Using mime-types-data 3.2016.0221
Using arel 6.0.3
Using execjs 2.6.0
Using bcrypt 3.1.11
Using debug_inspector 0.0.2
Using sass 3.4.22
Using byebug 9.0.0
Using cancan 1.6.10
Using coffee-script-source 1.10.0
Using thor 0.19.1
Using concurrent-ruby 1.0.2
Using orm_adapter 0.5.0
Using devise-i18n 1.0.1
Using multi_json 1.12.0
Using mysql2 0.4.4
Using bundler 1.12.5
Using raphael-rails 2.1.2
Using tilt 2.0.3
Using spring 1.7.1
Using rdoc 4.2.2
Using tzinfo 1.2.2
Using nokogiri 1.6.7.2
Using rack-test 0.6.3
Using warden 1.2.6
Using passenger 5.0.28
Using mime-types 3.0
Using autoprefixer-rails 6.3.6
Using uglifier 3.0.0
Using binding_of_caller 0.7.2
Using coffee-script 2.4.1
Using sprockets 3.6.0
Using sdoc 0.4.1
Using activesupport 4.2.6
Using loofah 2.0.3
Using mail 2.6.4
Using bootstrap-sass 3.3.6
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.6
Using activemodel 4.2.6
Using jbuilder 2.4.1
Using rails-html-sanitizer 1.0.3
Using rails-dom-testing 1.0.7
Using activejob 4.2.6
Using activerecord 4.2.6
Using actionview 4.2.6
Using ar-octopus 0.8.6
Using actionpack 4.2.6
Using actionmailer 4.2.6
Using railties 4.2.6
Using kaminari 0.17.0
Using sprockets-rails 3.0.4
Using simple_form 3.2.1
Using coffee-rails 4.1.1
Using responders 2.2.0
Using font-awesome-rails 4.6.2.0
Using jquery-rails 4.1.1
Using jquery-ui-rails 5.0.5
Using morrisjs-rails 0.5.1
Using rails-i18n 4.0.8
Using rails 4.2.6
Using sass-rails 5.0.4
Using web-console 2.3.0
Using turbolinks 2.5.3
Using wice_grid 3.6.2
Using devise 4.1.0
Using jquery-turbolinks 2.1.0

It is not work.
@grid = initialize_grid(grid_data)

but this code work.
@grid = initialize_grid(grid_data.klass)

from wice_grid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.