This project is archived and is in readonly mode.
named_scope.is_a? loads association
-
Ryan Bigg
Why are you doing it like this? Why not limit the original call to 10 messages and then if it's empty build a message.
messages = current_user.messages.all(:limit => 10) messages = [current_user.messages.build(:text => 'Welcome')] if messages.empty? -
Ryan Bigg
- State changed from new to wontfix