Flowdock
method

assign_controller_names!

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: Rails::Generators::ResourceHelpers
assign_controller_names!(name) protected

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/resource_helpers.rb, line 39
        def assign_controller_names!(name)
          @controller_name = name
          @controller_class_path = name.include?('/') ? name.split('/') : name.split('::')
          @controller_class_path.map! { |m| m.underscore }
          @controller_file_name = @controller_class_path.pop
        end
Register or log in to add new notes.