Commit Graph

27 Commits

Author SHA1 Message Date
Gleb Mazovetskiy 12aa4fa143 Use schema_cache.table_exists? method instead 2012-11-19 23:49:27 +01:00
Darren Johnson b8976d3218 Fix for InfixOperations breaking count 2012-08-22 16:17:45 -07:00
Ryan Bigg 90d18a09f8 Merge pull request #75 from aka47/patch-1
remove not anymore existing table_aliases method, instead use alias_tracker
2012-04-11 13:27:26 -07:00
Nathan Broadbent 42f03b4b8f Ensure that ActiveRecord is required. (Necessary for gems that depend on Ransack) 2012-03-03 11:39:59 +08:00
Tim Aßmann ca5e404ace remove not anymore existing table_aliases method, instead use alias_tracker 2012-02-16 10:27:00 +01:00
Ernie Miller 8629343a64 Use AR 3.2's uniq for distinct don't strip order without sorts 2012-02-15 11:48:49 -05:00
Ernie Miller e20c4dfc24 Version bump, Rails 3.2 compat (fixes #49) 2012-01-20 15:13:27 -05:00
Ernie Miller 3f9fa1c2bb Bump version, use polyamorous 2011-09-03 15:37:02 -04:00
Ernie Miller c156fa4a7a Don't let _ be contained in polymorphic class. Fixes #12 2011-08-04 17:10:33 -04:00
Ernie Miller 6a39ce6d42 Don't amc graft if Squeel is loaded (see #4) 2011-06-27 19:30:57 -04:00
Ernie Miller 61e455e8bc Update gem requirements and remove some useless comments. 2011-06-27 18:55:50 -04:00
Ernie Miller 28add8c195 On second thought, something is better than nothing.
Still, will need to avoid using association sorts when the DB doesn't support it.
Hoping someone brighter than me comes up with a solid way to do this in a more
flexible and cross-DB-compatible way.
2011-06-11 14:07:11 -04:00
Ernie Miller 567c70bd01 Cross-platform DISTINCT that doesn't work without surprises is a lost cause.
Implement this against the result if you desire.
2011-06-10 11:32:29 -04:00
Ernie Miller 2cfa803111 D'oh. class_attribute FAIL. 2011-06-10 09:33:02 -04:00
Ernie Miller cec4e3d64f Fix/add specs, remove duplicate base.rb for edge and 3.0 2011-06-04 18:01:12 -04:00
Ernie Miller 747b414110 Strip out inaccessible associations from form helper attribute collections 2011-05-30 13:00:59 -04:00
Ernie Miller f151d62d22 API for ransackable_attributes should be to use super and filter in a method. 2011-05-30 11:14:30 -04:00
Ernie Miller ee84a09337 Make sure we are using the adapter's column hash in AR 3.0 2011-04-18 14:34:48 -04:00
Ernie Miller 742c638af6 3.0 backporting work in progress 2011-04-18 11:28:19 -04:00
Ernie Miller 7264896d43 Thanks, @jonleighton! 2011-04-14 19:16:40 -04:00
Ernie Miller 5c937d628f SELECT DISTINCT instead of using group hack, and fix a glitch with grafting 2011-04-13 20:15:57 -04:00
Ernie Miller 77e570cf9c Ransackers get classy. Also, laying the groundwork for authorization 2011-04-11 20:07:23 -04:00
Ernie Miller 62cf765c12 Ransacker implementation improvements 2011-04-11 12:04:31 -04:00
Ernie Miller 11dd0d63f4 WIP: refactor type casting behavior to better support ranasckers 2011-04-10 21:11:28 -04:00
Ernie Miller ecd42f4a83 WIP: move away from contextualize, toward bind 2011-04-09 20:55:28 -04:00
Ernie Miller 10d720104d Initial support for polymorphic belongs_to associations 2011-04-08 11:33:10 -04:00
Ernie Miller 294015309b Initial commit. 2011-03-30 20:31:39 -04:00