Rails 2.2 gotcha - inline subclasses
Due to the way Rails' development mode works, you need to make sure you don't define subclasses in your "concern" files like this:
# status.rb
class Status
include "status/filtering"
end
and then
# status/filtering.rb
class Status
module CustomAssociationExtension
end
end
Instead, you should have a file app/models/status/custom_association_extension.rb so that rails can easily find it.
Ticket: #1339 (note: not solved)
- Add new comment
- 31 reads
- Feed: caboose
- Original article


Recent comments
1 year 23 weeks ago
1 year 23 weeks ago
1 year 25 weeks ago
1 year 27 weeks ago
1 year 42 weeks ago
1 year 45 weeks ago
1 year 45 weeks ago
1 year 45 weeks ago
1 year 46 weeks ago
1 year 48 weeks ago