Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/application.rb

Overview

Filters added to this controller will be run for all controllers in the application. Likewise, all the methods added will be available for all controllers.

Instance Method Summary collapse

Instance Method Details

#sort_key(key_sym, key_sql) ⇒ Object



8
9
10
# File 'app/controllers/application.rb', line 8

def sort_key(key_sym, key_sql)
  params[key_sym].split(".").map{ |k| key_sql[k] }.join(",")
end