Open paulcsmith opened 4 years ago
They would work mostly like Rails except it would not have a block version as it is more confusing than helpful (IMO)
link_to_if user.admin?, "Admin", to: Admin::Users::Index link_to_unless user.admin?, "Admin", to: Admin::Users::Index
Actually I don't think this quite does what I wanted and it seems it is very rarely used in the wild. I'll leave this open, but it is not a priority
They would work mostly like Rails except it would not have a block version as it is more confusing than helpful (IMO)