Skip to content

Commit

Permalink
set the this_class variable to the base class of the passed-in model …
Browse files Browse the repository at this point in the history
…name for crudify's default options - this allows STI implementation by setting the correct table name of the model's base class
  • Loading branch information
Ken Nordquist authored and parndt committed Feb 8, 2011
1 parent bab2225 commit f143f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/refinery/crud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def self.default_options(model_name)
singular_name = model_name.to_s
class_name = singular_name.camelize
plural_name = singular_name.pluralize
this_class = class_name.constantize
this_class = class_name.constantize.base_class

{
:title_attribute => "title",
Expand Down

0 comments on commit f143f50

Please sign in to comment.