Skip to content

Instantly share code, notes, and snippets.

method(:foo).to_java.source_location(Thread.current.to_java.getContext())
class InlineFormsController < ApplicationController
def self.cancan_enabled?
return @cancan_enabled if defined?(@cancan_enabled)
@cancan_enabled = begin
::Ability && true
rescue NameError
false
end
end