{"action":"opened","issue":{"url":"https://api.github.com/repos/scambra/recordselect/issues/12","labels_url":"https://api.github.com/repos/scambra/recordselect/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/scambra/recordselect/issues/12/comments","events_url":"https://api.github.com/repos/scambra/recordselect/issues/12/events","html_url":"https://github.com/scambra/recordselect/issues/12","id":97833541,"number":12,"title":"Record select with conditions bug on rails 4.2.3","user":{"login":"JoaoFelipe","id":327789,"avatar_url":"https://avatars.githubusercontent.com/u/327789?v=3","gravatar_id":"","url":"https://api.github.com/users/JoaoFelipe","html_url":"https://github.com/JoaoFelipe","followers_url":"https://api.github.com/users/JoaoFelipe/followers","following_url":"https://api.github.com/users/JoaoFelipe/following{/other_user}","gists_url":"https://api.github.com/users/JoaoFelipe/gists{/gist_id}","starred_url":"https://api.github.com/users/JoaoFelipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoaoFelipe/subscriptions","organizations_url":"https://api.github.com/users/JoaoFelipe/orgs","repos_url":"https://api.github.com/users/JoaoFelipe/repos","events_url":"https://api.github.com/users/JoaoFelipe/events{/privacy}","received_events_url":"https://api.github.com/users/JoaoFelipe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-29T01:11:01Z","updated_at":"2015-07-29T01:11:01Z","closed_at":null,"body":"I'm using rails 4.2.3 with active_scaffold 3.4.23 and recordselect 3.4.6\r\n\r\nOn my controller, I used\r\n```ruby\r\nconfig.columns[:course].form_ui = :record_select\r\nconfig.columns[:course].options[:params] = {available: true}\r\n```\r\n\r\nWhen I click on the record select, it throws the exception:\r\n```\r\nStarted GET \"/courses/browse?available=true&search=\" for 127.0.0.1 at 2015-07-28 21:58:21 -0300\r\nProcessing by CoursesController#browse as */*\r\n  Parameters: {\"available\"=>\"true\", \"search\"=>\"\"}\r\n  User Load (0.2ms)  SELECT  \"users\".* FROM \"users\" WHERE \"users\".\"id\" = ?  ORDER BY \"users\".\"id\" ASC LIMIT 1  [[\"id\", 1]]\r\nCompleted 500 Internal Server Error in 16ms (ActiveRecord: 0.2ms)\r\n\r\nNoMethodError - undefined method `type_cast' for #<ActiveRecord::ConnectionAdapters::Column:0x007f5a649b25b0>:\r\n  recordselect (3.4.6) lib/record_select/conditions.rb:82:in `record_select_condition_for_column'\r\n  recordselect (3.4.6) lib/record_select/conditions.rb:67:in `block in record_select_conditions_from_params'\r\n  actionpack (4.2.3) lib/action_controller/metal/strong_parameters.rb:185:in `each_pair'\r\n  recordselect (3.4.6) lib/record_select/conditions.rb:63:in `record_select_conditions_from_params'\r\n  recordselect (3.4.6) lib/record_select/conditions.rb:14:in `record_select_conditions'\r\n  recordselect (3.4.6) lib/record_select/actions.rb:6:in `browse'\r\n  actionpack (4.2.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\r\n...\r\n```\r\n\r\nI think that the method type_cast in line https://github.com/scambra/recordselect/blob/master/lib/record_select/conditions.rb#L82 should be type_cast_from_user on rails 4.2\r\n"}}