Commit graph

19 commits

Author SHA1 Message Date
Martin Rehfeld
7dc843f0a7 ensure backward compatibility
also get method and alias names right
2010-08-17 13:47:29 +02:00
Martin Rehfeld
dec40a9c14 whitespace and punctuation 2010-08-12 20:35:16 +02:00
Martin Rehfeld
50e6c7054f Merge commit '27635154e722a3ad970c23d0d58b4a3cbad7e5e3' into has_roles
draft for multi-role query methods provided by kristianmandrup

Conflicts:
	lib/role_model/implementation.rb
2010-08-12 20:31:14 +02:00
Martin Rehfeld
72ffee5870 use alias_method instead of alias
this might be beneficial when inheriting and 
re-defining methods introduced by RoleModel
2010-08-12 20:25:28 +02:00
Kristian Mandrup
27635154e7 added methods to check for multiple roles, any or all - also added 'drive_it' file to show how to use it - as described in README 2010-08-12 15:40:28 +02:00
Martin Rehfeld
f7f139a92e provide is? alias for has_role?
this is what ryanb proposed on his implementation
2010-08-07 15:15:32 +02:00
Martin Rehfeld
2d04b3f1a5 remove is_a? and is_an? aliases for has_role?
these were poor names and caused conflicts
2010-08-04 14:16:21 +02:00
Martin Rehfeld
a66af17fdf move instance methods into separate file 2010-06-04 09:18:58 +02:00
Martin Rehfeld
be80b7e106 move RoleModel::ClassMethods into separate file 2010-05-30 22:28:06 +02:00
Martin Rehfeld
35c7ed502c fix another typo in comment 2010-05-30 22:18:53 +02:00
Martin Rehfeld
88601af7dd alias has_role? to is_an? (in addition to is_a?) 2010-05-30 22:16:14 +02:00
Martin Rehfeld
aae5470155 improve RDoc documentation and fix typo in README 2010-05-30 22:13:44 +02:00
Martin Rehfeld
78cbab58b1 make Roles class inherit from Set instead of Array 2010-05-29 23:29:27 +02:00
Martin Rehfeld
b4159f1d82 alias has_role? to is_a? 2010-05-29 23:27:11 +02:00
Martin Rehfeld
7b24c29f4d support adding roles with << 2010-05-29 13:20:59 +02:00
Martin Rehfeld
11dbe76271 fix Ruby warning 2010-05-29 12:58:27 +02:00
Martin Rehfeld
3b6096759f support inheritance of RoleModel settings 2010-05-25 17:27:16 +02:00
Martin Rehfeld
6167cee6fc initial codebase 2010-05-25 00:13:21 +02:00
Martin Rehfeld
09649d08d0 Initial commit to role_model. 2010-05-24 21:50:46 +02:00