https://avo.cool logo
Join Discord
Powered by
# avo-2
  • l

    lemon-wall-20836

    08/28/2021, 5:03 PM
    Haha
  • l

    lemon-wall-20836

    08/28/2021, 5:03 PM
    I see it now
  • d

    delightful-sugar-45580

    09/30/2021, 7:03 PM
    hey guys, context object is no longer accessible in the visible block of an field?
  • d

    delightful-sugar-45580

    09/30/2021, 7:03 PM
    Copy code
    field :admin, as: :boolean, visible: -> (resource) { context[:user].admin? }
    
    err:
    undefined method `[]' for nil:NilClass
  • l

    lemon-wall-20836

    09/30/2021, 7:09 PM
    it's still there
  • l

    lemon-wall-20836

    09/30/2021, 7:09 PM
    I think you need to do
    resource:
    (vs
    resource
    )
  • l

    lemon-wall-20836

    09/30/2021, 7:10 PM
    I tested it now
  • l

    lemon-wall-20836

    09/30/2021, 7:10 PM
  • l

    lemon-wall-20836

    09/30/2021, 7:10 PM
  • d

    delightful-sugar-45580

    09/30/2021, 7:49 PM
    @User i change and get the same error
  • d

    delightful-sugar-45580

    09/30/2021, 7:49 PM
  • l

    lemon-wall-20836

    09/30/2021, 7:49 PM
    what version of avo are you on?
  • l

    lemon-wall-20836

    09/30/2021, 7:50 PM
    1.13.3
  • d

    delightful-sugar-45580

    09/30/2021, 7:50 PM
  • l

    lemon-wall-20836

    09/30/2021, 7:50 PM
    hmm... it should work
  • l

    lemon-wall-20836

    09/30/2021, 7:51 PM
    have you defined the context?
  • d

    delightful-sugar-45580

    09/30/2021, 7:52 PM
    yep, i have something similar working in another project, im checking what is missing
  • l

    lemon-wall-20836

    09/30/2021, 7:52 PM
    cool
  • d

    delightful-sugar-45580

    09/30/2021, 7:53 PM
    it is the problem ;P tks
  • l

    lemon-wall-20836

    09/30/2021, 7:53 PM
    for sure!
  • a

    alert-policeman-73141

    10/04/2021, 4:09 PM
    Hello! Our custom field in Avo stopped appearing recently and we're trying to figure out what happened. Were there any changes recently made to Avo that would hide our custom field from resource views? We recently updated from 1.6 to 1.13.3.
  • l

    lemon-wall-20836

    10/04/2021, 5:39 PM
    hey @User. no major changes between versions
  • l

    lemon-wall-20836

    10/04/2021, 5:39 PM
    do you have a license key added to the config?
  • a

    alert-policeman-73141

    10/04/2021, 5:44 PM
    We don't have a pro license key in our config. Did custom fields recently become a pro only feature?
  • l

    lemon-wall-20836

    10/04/2021, 5:45 PM
    they've always been a pro feature 🥴
  • a

    alert-policeman-73141

    10/04/2021, 5:46 PM
    Hm we've been using a custom field implementation for 5 months and haven't had any problems. Maybe we've been mistaken?
  • l

    lemon-wall-20836

    10/04/2021, 5:46 PM
    welp
  • l

    lemon-wall-20836

    10/04/2021, 5:47 PM
    maybe we didn't enforce it before
  • l

    lemon-wall-20836

    10/04/2021, 5:47 PM
    I'm checking now to see when we started enforcing it
  • l

    lemon-wall-20836

    10/04/2021, 5:50 PM
    wow
1...151617...64Latest