lib/rasti/app.rb in rasti-app-0.0.1 vs lib/rasti/app.rb in rasti-app-0.0.2

- old
+ new

@@ -71,15 +71,11 @@ private attr_reader :container, :context - def user - context.fetch(:user) - end - def policy - @policy ||= (container[:policy_class] || Policy).new container, user + @policy ||= (container[:policy_class] || Policy).new container, context end def call(interaction, permission, params) authorize! permission, params interaction.new(container, context).call(params) \ No newline at end of file