lib/loofah/activerecord/xss_foliate.rb
#
# Class method to determine whether or not this model is applying
# xss_foliation to its attributes. Could be useful in test suites.
#
Class method to determine whether or not this model is applying
xss_foliation to its attributes. Could be useful in test suites.
Class method to determine whether or not this model is applying xss_foliation to its attributes . Could be useful in test suites .
def xss_foliated?
        options =
          if respond_to?(:class_attribute)
            xss_foliate_options
          else
            read_inheritable_attribute(:xss_foliate_options)
          end
        ! (options.nil? || options.empty?)
      end
def xss_foliated? options = if respond_to? ( :class_attribute ) xss_foliate_options else read_inheritable_attribute ( :xss_foliate_options ) end ! ( options . nil? || options . empty? ) end
Class method to determine whether or not this model is applying
xss_foliation to its attributes.
Class method to determine whether or not this model is applying xss_foliation to its attributes .
# Rails 3.0 and later