class ApplicationController
helper_method :excludes
def excludes
@€xcludes ||= ['foo', 'bar']
end
end
|
<% if excludes.include?(something) -%> ... <% end -%> |
class ApplicationController
helper_method :excludes
def excludes
@€xcludes ||= ['foo', 'bar']
end
end
|
<% if excludes.include?(something) -%> ... <% end -%> |