Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 34 lines (22 sloc) 0.918 kB
2567807 Initial
Joshua Clayton authored
1 h1. Watchtower
2
039d7d8 Added info to readme and wrote class method forcing public handling o…
Joshua Clayton authored
3 h2. Setup
4
5 Install the plugin:
6
7 script/plugin install git://github.com/joshuaclayton/watchtower.git
8
9 Move the assets (requires rsync):
10
11 cd vendor && rake watchtower:sync
12
13 Set up ApplicationController
14
15 class ApplicationController < ActionController::Base
16 include Watchtower::ApplicationControllerBase
17 force_public_request_handling! # use this to force local development to rescue actions like a production server
18 # etc...
19 end
20
21 If you want to secure the data, you might want to set up an initializer:
22
23 WatchtowerController.class_eval do
24 before_filter :check_credentials
25
26 private
27
28 def check_credentials
29 # call login_required (from your auth system or whatever) unless viewing a specific exception by key
30 login_required unless find_by_key?
31 end
32 end
33
2567807 Initial
Joshua Clayton authored
34 Copyright (c) 2009 Josh Clayton, released under the MIT license
Something went wrong with that request. Please try again.