Class: CxxesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- CxxesController
- Defined in:
- app/controllers/cxxes_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
2 3 4 5 6 7 |
# File 'app/controllers/cxxes_controller.rb', line 2 def index @tablename = params[:model] @tablename = 'User' if @tablename.nil? @tableklass = @tablename.to_s.constantize @cols = @tableklass.columns end |