lib/avo/base_resource.rb in avo-1.25.0 vs lib/avo/base_resource.rb in avo-1.25.1

- old
+ new

@@ -404,12 +404,16 @@ end # This is used as the model class ID # We use this instead of the route_key to maintain compatibility with uncountable models # With uncountable models route key appends an _index suffix (Fish->fish_index) - # Example: User->users, MediaItem->medie_items, Fish->fish + # Example: User->users, MediaItem->media_items, Fish->fish def model_key model_class.model_name.plural + end + + def model_name + model_class.model_name end def singular_model_key model_class.model_name.singular end