Lee Hericks
Lee Hericks
Of course I could just test if the current user is a teacher in the group, but then I would be littering the authorization code in my view partial.
```erb ``` I feel better about this but I'm still not sure if I'm doing this wrong or allowed_to? has a bug because allowed_to? can be "resourceless" in the controller.
The group could be set at the controller level and that would DRY up the call site a bit. Nice point! It's not the part causing trouble though. The second...
@palkan Sorry for the very late reply. I removed the class from the second parameter to trigger the error in my current code: `if allowed_to?(:index?, with: Lms::Groups::StudentshipPolicy, context: { group:...
I'm having a similar issue! I'm using ActiveStorage and want to serialize ActiveStorage::Attachment objects with my `AttachmentSerializer` which has no prefixed modules. In my `NewsPostSerializer`, has_many works! (It helps that...
Well, in fact because this association is not polymorphic I was wrong. I fixed everything: ```ruby class DlsClass::GroupSerializer include FastJsonapi::ObjectSerializer has_one :orientation_pdf, record_type: :attachment, serializer: AttachmentSerializer, if: Proc.new { |group|...
I agree, unless there is a huge performance hit, the ability to conditionally serialize meta is good. But because meta is not one single unit like an attribute or a...
Thanks for investigating this. Yes, it seems simply to boil down to associations being saved automatically, which is not always desirable. I may wish to assign the properties and associations...
I sat down this evening to contemplate this documentation based proposal about labels and what it might allow to be accomplished, because I think good support for labels overall is...
I just realized, if you implement the core label support in ActiveNode as I outlined in the github issue, then anyone could just create a concern and add the label....