fatfreecrm / ransack_ui

Framework for building a search UI with Ransack
MIT License
18 stars 19 forks source link

fix undefined method 'constantize' error #7

Open welitonfreitas opened 10 years ago

welitonfreitas commented 10 years ago

undefined method `constantize' for #ActiveModel::Name:0x261fd148 Extracted source (around line #6):

<%= f.attribute_fields do |a| %>
  <span class="fields" data-object-name="<%= f.object_name %>">
  <%= a.attribute_select({}, :class => 'ransack_attribute') %>
<% end %>

<%= f.predicate_select({}, :class => 'ransack_predicate') %
welitonfreitas commented 10 years ago

This method has been moved to ActiveSupport::Inflector#constantize on rails 4

ndbroadbent commented 10 years ago

Sorry, I haven't had a chance to look at this project for a long time. No problem if you don't have time, but please feel free to submit a Pull Request that fixes this issue. If you're really interested in the project, I could even add you as a collaborator so that you can help with development and maintenance.

rchady commented 8 years ago

Any update on this?