config.plugins = [] end ! # Rails 2 needs the session to be configured before initializing GitHub.only_on_rails_2 do require_relative "initializers/session_store" end
can_read?(model) science "user-can-read" do |e| e.context :caller => caller, :login => login e.enabled { self.id % 3 == 0 } e.control { model.readable_by?(user) } # old way e.candidate { self.can?(:read, model) } # new way end end end