method

remove_possible_suffix

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: Rails::Generators::ControllerGenerator
remove_possible_suffix(name) private

No documentation

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

Hide source
# File railties/lib/rails/generators/rails/controller/controller_generator.rb, line 37
        def remove_possible_suffix(name)
          name.sub(/_?controller$/, "")
        end
Register or log in to add new notes.