collin (owner)

Revisions

gist: 205449 Download_button fork
public
Public Clone URL: git://gist.github.com/205449.git
Embed All Files: show embed
csp_controller.rb #
1
2
3
4
5
6
7
8
9
    before :get_connection, :except => [:open]
 
  private
    # Action args only works on actions, I'd love it to work on callbacks.
    def get_connection id
      @connection = PConnection.get id
      raise NotFound unless @connection
    end