module Snaptable

Constants

VERSION

Public Class Methods

respond_with(controller, *args) click to toggle source
# File lib/snaptable.rb, line 12
def self.respond_with(controller, *args)
  if name = controller.params[:table]
    table = args.find { |table| table.table_name == name }
    table.respond
  end
end