Method: Ld::Project#find_controller

Defined in:
lib/ld/project.rb

#find_controller(model_name) ⇒ Object



88
89
90
91
92
93
94
95
# File 'lib/ld/project.rb', line 88

def find_controller model_name
  @controllers.each do |c|
    if c.name.split('_controller.rb')[0] == model_name
      return c
    end
  end
  nil
end