Tag Archives: named_scope

Named_scope clashing with ActiveSupport

One of the named_scope defined by Station was parents. It simply scoped searches in Resources to records that haven’t a parent_id defined. This is useful for Posts or AttachmentFu records (which makes thumbnails with the parent_id).

The name “parents” was unfortunate, as it clashes with a method in ActiveSupport::CoreExtensions::Module

So the named_scope has been renamed to “parent_scoped“. You are encourage to upgrade to the new stable version, Station 0.2.3

Advertisements