Permalink
Browse files

Added extension metadata.

  • Loading branch information...
1 parent 7fb4b50 commit 35bd90fd9f2784531c7dfab26cff78625b2de47d @jasiek committed Jan 12, 2011
Showing with 21 additions and 7 deletions.
  1. +19 −0 LICENSE
  2. +2 −7 user_pages_extension.rb
View
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Jan Szumiec.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
@@ -1,16 +1,11 @@
-# Uncomment this if you reference any of your controllers in activate
-# require_dependency 'application_controller'
-
class UserPagesExtension < Radiant::Extension
version "1.0"
- description "Describe your extension here"
- url "http://yourwebsite.com/user_pages"
+ description "Controls page manipulation operations (create, update, destroy) on a per-user basis."
+ url "http://github.com/jasiek/radiant-user_pages-extension"
extension_config do |config|
config.active_record.observers = [config.active_record.observers, :page_observer, :user_page_permission_observer]
end
-
- # See your config/routes.rb file in this extension to define custom routes
def activate
PageObserver.instance.send(:add_observer!, Page)

0 comments on commit 35bd90f

Please sign in to comment.