Method: Saml::Notification::ClassMethods#should_wrap?
- Defined in:
- lib/saml/notification.rb
#should_wrap?(name) ⇒ Boolean
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/saml/notification.rb', line 35 def should_wrap?(name) @notify_on ||= [] @exclude ||= [] return false if @notify_on.exclude?(name) || @exclude.include?(name.to_s) @exclude << "#{name}_with_notification" @exclude << "#{name}_without_notification" @exclude << "#{name}" true end |