Class: Mockup::MockupController

Inherits:
ApplicationController show all
Defined in:
app/controllers/mockup/mockup_controller.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(arg) ⇒ Object

unloadable



4
5
6
7
8
9
10
# File 'app/controllers/mockup/mockup_controller.rb', line 4

def method_missing arg
  render "/mockup/#{arg}"
rescue
  raise unless Rails.env.production?
  @action = arg
  render "/mockup/todo"
end