lib/authorized_persona/authorization.rb
# Configure authorization for an authorized persona class
Configure authorization for an authorized persona class
Configure authorization for an authorized persona class
def authorization_persona
        unless authorization_persona_class_name.is_a?(String)
          raise AuthorizedPersona::Error, "you must configure authorization, e.g. `authorize_persona class_name: 'User'`"
        end
        authorization_persona_class_name.constantize
      end
def authorization_persona unless authorization_persona_class_name . is_a? ( String ) raise AuthorizedPersona :: Error , "you must configure authorization, e.g. `authorize_persona class_name: 'User'`" end authorization_persona_class_name . constantize end
Configure authorization for an authorized persona class
Configure authorization for an authorized persona class