method

when

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Case
when(condition, expression = nil) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/arel/nodes/case.rb, line 14
      def when(condition, expression = nil)
        @conditions << When.new(Nodes.build_quoted(condition), expression)
        self
      end
Register or log in to add new notes.