method

remove_possible_suffix

Importance_0
v6.1.7.7 - 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 33
        def remove_possible_suffix(name)
          name.sub(/_?controller$/, "")
        end
Register or log in to add new notes.