method

name

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Options
name() public

No documentation

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

Hide source
# File actionpack/lib/action_controller/metal/params_wrapper.rb, line 143
      def name
        return super if @name_set

        m = model
        synchronize do
          return super if @name_set

          @name_set = true

          unless super || klass.anonymous?
            self.name = m ? m.to_s.demodulize.underscore :
              klass.controller_name.singularize
          end
        end
      end
Register or log in to add new notes.