Class: ModelMirror::MirrorController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ModelMirror::MirrorController
- Defined in:
- app/controllers/model_mirror/mirror_controller.rb
Overview
Get datas for views
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
8 9 10 |
# File 'app/controllers/model_mirror/mirror_controller.rb', line 8 def index @models = ActiveRecord::Base.descendants end |
#list ⇒ Object
17 18 19 |
# File 'app/controllers/model_mirror/mirror_controller.rb', line 17 def list @rows = model_class.all end |
#show ⇒ Object
12 13 14 15 |
# File 'app/controllers/model_mirror/mirror_controller.rb', line 12 def show @row = model_instance @model_children = model_children end |