Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
Updated project description
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanl committed Apr 8, 2012
1 parent 6ece493 commit fd5db87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.markdown
@@ -1,6 +1,8 @@
# Authority

Authority gives you a clean and easy way to say, in your Rails app, **who** is allowed to do **what** with your models. Unauthorized actions get a warning and an entry in a log file.
Authority helps you authorize actions in your Rails app. It's **ORM-neutral** and has very little fancy syntax; just group your models under one or more Authorizer classes and write plain Ruby methods on them.

Authority will work fine with a standalone app or a single sign-on system. You can check roles in a database or permissions in a YAML file. It doesn't care! What it **does** do is give you an easy way to organize your logic, define a default strategy, and handle unauthorized actions.

It requires that you already have some kind of user object in your application, accessible from all controllers and views via a method like `current_user` (configurable).

Expand Down Expand Up @@ -47,8 +49,6 @@ The goals of Authority are:
- To gracefully handle any access violations: display a "you can't do that" screen and log the violation.
- To do all this with minimal effort and mess.

Notably, Authority is **ORM-neutral** and has **no magical rules syntax**. Authority helps your classes communicate, but your authorization logic goes in normal Ruby methods.

<a name="flow_of_authority">
## The flow of Authority

Expand Down
4 changes: 2 additions & 2 deletions authority.gemspec
Expand Up @@ -4,8 +4,8 @@ require File.expand_path('../lib/authority/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ["Nathan Long", "Adam Hunter"]
gem.email = ["nathanmlong@gmail.com", "adamhunter@me.com"]
gem.description = %q{Gem for managing authorization on model actions in Rails.}
gem.summary = %q{Authority gives you a clean and easy way to say, in your Rails app, **who** is allowed to do **what** with your models, with minimal clutter.}
gem.summary = %q{Authority helps you authorize actions in your Rails app using plain Ruby methods on Authorizer classes.}
gem.description = %q{Authority helps you authorize actions in your Rails app. It's ORM-neutral and has very little fancy syntax; just group your models under one or more Authorizer classes and write plain Ruby methods on them.}
gem.homepage = "https://github.com/nathanl/authority"

gem.add_dependency "rails", ">= 3.0.0"
Expand Down

0 comments on commit fd5db87

Please sign in to comment.