public
Description: Access control layer for ActionPack, providing a DSL for writing a firewall to sit in front of Rails controllers
Homepage:
Clone URL: git://github.com/jcoglan/consent.git
jcoglan (author)
Sat May 09 11:55:47 -0700 2009
commit  98ff580a71d570938625f948f727d34da05e92f9
tree    2c62ad53ea367466d5b0289c69643b1bc162c137
parent  949d4915768bfe02cdc915fe20410b4451d3887f
consent / init.rb
100644 24 lines (17 sloc) 0.513 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require File.dirname(__FILE__) + '/lib/consent'
 
app = RAILS_ROOT + '/app/controllers/application'
controller = app + '_controller'
require File.file?(controller + '.rb') ? controller : app
 
class ::Integer
  include Consent::Extensions::Integer
end
 
class ::ApplicationController
  include Consent::Extensions::UrlHelper
  include Consent::Filters
end
 
class ::ActionController::Routing::RouteSet
  include Consent::Extensions::Routing
end
 
class ::ActionView::Base
  include Consent::Extensions::UrlHelper
end