Class: Virgo::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ActionView::Helpers::SanitizeHelper, ActionView::Helpers::TextHelper, ApplicationHelper, RenderHelper
Defined in:
app/controllers/virgo/application_controller.rb

Class Method Summary collapse

Methods included from RenderHelper

#render_content, #with_format

Methods included from ApplicationHelper

#action?, #admin?, #admin_access?, #admin_view?, #alerts, #base_errors, #category_timestamp, #column_timestamp, #compact_html, #controller?, #decode_html_entities, #expanded_post_url, #is_admin_view?, #page_url, #post_time_format, #post_timestamp, #production?, #redis_timestamp_key_for, #site, #site_key, #superuser?, #tabbed_param, #word_count

Class Method Details

.collection_actions(*extras) ⇒ Object



47
48
49
# File 'app/controllers/virgo/application_controller.rb', line 47

def self.collection_actions(*extras)
  [:index, :new, :create] + extras
end

.default_sort_order(val) ⇒ Object



51
52
53
# File 'app/controllers/virgo/application_controller.rb', line 51

def self.default_sort_order(val)
  @_default_sort_order = val
end

.deploy_keyObject



100
101
102
# File 'app/controllers/virgo/application_controller.rb', line 100

def self.deploy_key
  Rails.application.config.deploy_key
end

.member_actions(*extras) ⇒ Object



43
44
45
# File 'app/controllers/virgo/application_controller.rb', line 43

def self.member_actions(*extras)
  [:show, :edit, :update, :destroy] + extras
end