Flowdock
method

check_class_collision

Importance_1
v3.2.3 - Show latest stable - 0 notes - Class: Rails::Generators::NamedBase
check_class_collision(options={}) protected

Add a class collisions name to be checked on class initialization. You can supply a hash with a :prefix or :suffix to be tested.

Examples

check_class_collision :suffix => "Observer"

If the generator is invoked with class name Admin, it will check for the presence of “AdminObserver”.

Show source
Register or log in to add new notes.