Skip to content

Instantly share code, notes, and snippets.

@leikind
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leikind/470ae3fab4e7b4d20e42 to your computer and use it in GitHub Desktop.
Save leikind/470ae3fab4e7b4d20e42 to your computer and use it in GitHub Desktop.
WiceGrid Version 3.4.0

OCTOBER 11, 2013

WiceGrid version 3.4.0 has been released.

Changelog

Version 3.4.0 of WiceGrid works with Rails 4 without any changes to the API.

However, Rails 4 produces the following deprecation message:

DEPRECATION WARNING: It looks like you are eager loading table(s) (one of: tasks, statuses) that are referenced in a string SQL snippet. For example:

Post.includes(:comments).where("comments.title = 'foo'")

Currently, Active Record recognizes the table in the string, and knows to JOIN the comments table to the query, rather than loading comments in a separate query. However, doing this without writing a full-blown SQL parser is inherently flawed. Since we don't want to write an SQL parser, we are removing this functionality. From now on, you must explicitly tell Active Record when you are referencing a table from a string:

Post.includes(:comments).where("comments.title = 'foo'").references(:comments)

This will be fixed in future versions of WiceGrid and will cause a change in the declaration of columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment