lib/surrounded/context/role_builders.rb in surrounded-0.9.11 vs lib/surrounded/context/role_builders.rb in surrounded-1.0.0

- old
+ new

@@ -1,16 +1,8 @@ module Surrounded module Context - class InvalidRoleType < ::StandardError - unless method_defined?(:cause) - def initialize(msg=nil) - super - @cause = $! - end - attr_reader :cause - end - end + class InvalidRoleType < ::StandardError; end module RoleBuilders def self.extended(base) Surrounded::Exceptions.define(base, exceptions: :InvalidRoleType) @@ -65,14 +57,14 @@ require 'surrounded/context/negotiator' # Admin private_const_set(RoleName(name), Negotiator.for_role(behavior)) end - + private def RoleName(text, suffix=nil) RoleName.new(text, suffix) end end end -end \ No newline at end of file +end