Class: Admin::ChangesController

Inherits:
ResourceController show all
Defined in:
app/controllers/admin/changes_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#cache, #pagination_parameters, #trusty_config

Instance Method Summary collapse

Methods inherited from ResourceController

#destroy, #index, model_class, paginate_models, #paginated?, #pagination_parameters, #will_paginate_options

Methods included from TrustyCms::ResourceResponses

#create_responses, extended

Methods inherited from ApplicationController

#after_sign_in_path_for, #initialize, #template_name

Methods included from LoginSystem

included

Constructor Details

This class inherits a constructor from ApplicationController

Instance Method Details

#showObject



6
7
8
9
# File 'app/controllers/admin/changes_controller.rb', line 6

def show
  @changes = load_changes
  @change_error = 'Version ID not found.' if params[:version_id].present? && @changes.empty?
end