├── .gitignore ├── .rspec ├── .travis.yml ├── CHANGELOG.md ├── Gemfile ├── MIT-LICENSE ├── README.md ├── Rakefile ├── app └── models │ ├── .gitkeep │ ├── role.rb │ └── user_role.rb ├── config └── routes.rb ├── db └── migrate │ ├── 001_create_user_roles.rb │ └── 002_create_roles.rb ├── lib ├── simple_roles.rb ├── simple_roles │ ├── configuration.rb │ ├── engine.rb │ ├── macros.rb │ ├── many.rb │ ├── many │ │ ├── persistence.rb │ │ └── roles_methods.rb │ ├── one.rb │ ├── one │ │ ├── persistence.rb │ │ └── roles_methods.rb │ ├── packager.rb │ └── version.rb └── tasks │ └── simple_roles_tasks.rake ├── script └── rails ├── simple_roles.gemspec └── spec ├── dummy ├── Rakefile ├── app │ ├── assets │ │ ├── javascripts │ │ │ ├── application.js │ │ │ ├── default.js │ │ │ ├── jquery.js │ │ │ ├── jquery_ujs.js │ │ │ └── posts.js │ │ └── stylesheets │ │ │ ├── application.css │ │ │ ├── default.css │ │ │ ├── posts.css │ │ │ └── scaffold.css │ ├── controllers │ │ ├── application_controller.rb │ │ ├── default_controller.rb │ │ └── posts_controller.rb │ ├── helpers │ │ ├── application_helper.rb │ │ ├── default_helper.rb │ │ └── posts_helper.rb │ ├── mailers │ │ └── .gitkeep │ ├── models │ │ ├── .gitkeep │ │ ├── post.rb │ │ └── user.rb │ └── views │ │ ├── default │ │ └── index.html.erb │ │ ├── devise │ │ ├── confirmations │ │ │ └── new.html.erb │ │ ├── mailer │ │ │ ├── confirmation_instructions.html.erb │ │ │ ├── reset_password_instructions.html.erb │ │ │ └── unlock_instructions.html.erb │ │ ├── passwords │ │ │ ├── edit.html.erb │ │ │ └── new.html.erb │ │ ├── registrations │ │ │ ├── edit.html.erb │ │ │ └── new.html.erb │ │ ├── sessions │ │ │ └── new.html.erb │ │ ├── shared │ │ │ └── _links.erb │ │ └── unlocks │ │ │ └── new.html.erb │ │ ├── layouts │ │ └── application.html.erb │ │ └── posts │ │ ├── _form.html.erb │ │ ├── edit.html.erb │ │ ├── index.html.erb │ │ ├── new.html.erb │ │ └── show.html.erb ├── config.ru ├── config │ ├── application.rb │ ├── boot.rb │ ├── database.yml │ ├── database_mysql.yml │ ├── database_pgsql.yml │ ├── environment.rb │ ├── environments │ │ ├── development.rb │ │ ├── production.rb │ │ └── test.rb │ ├── initializers │ │ ├── backtrace_silencers.rb │ │ ├── devise.rb │ │ ├── inflections.rb │ │ ├── mime_types.rb │ │ ├── secret_token.rb │ │ ├── session_store.rb │ │ ├── simple_roles.rb │ │ └── wrap_parameters.rb │ ├── locales │ │ ├── devise.en.yml │ │ └── en.yml │ └── routes.rb ├── db │ ├── migrate │ │ ├── 010_devise_create_users.rb │ │ ├── 20110925210726_create_user_roles.rb │ │ └── 20110925210727_create_roles.rb │ ├── schema.rb │ └── seeds.rb ├── log │ └── .gitkeep ├── public │ ├── 404.html │ ├── 422.html │ ├── 500.html │ └── favicon.ico ├── script │ └── rails └── test │ ├── fixtures │ ├── posts.yml │ └── users.yml │ ├── functional │ ├── default_controller_test.rb │ └── posts_controller_test.rb │ └── unit │ ├── helpers │ ├── default_helper_test.rb │ └── posts_helper_test.rb │ ├── post_test.rb │ └── user_test.rb ├── dummy_spec_helper.rb ├── simple_roles ├── configuration_spec.rb ├── integration_many_spec.rb ├── integration_one_spec.rb ├── macros_spec.rb ├── many_spec.rb └── one_spec.rb ├── spec_helper.rb └── support ├── controller_macros.rb ├── database.yml ├── factories.rb ├── migrations ├── 010_create_one_users.rb └── 011_create_users.rb ├── models ├── .gitkeep ├── one_user.rb └── user.rb └── setup_roles.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color --format nested 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/Gemfile -------------------------------------------------------------------------------- /MIT-LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/MIT-LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/Rakefile -------------------------------------------------------------------------------- /app/models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/models/role.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/app/models/role.rb -------------------------------------------------------------------------------- /app/models/user_role.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/app/models/user_role.rb -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- 1 | Rails.application.routes.draw do 2 | end 3 | -------------------------------------------------------------------------------- /db/migrate/001_create_user_roles.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/db/migrate/001_create_user_roles.rb -------------------------------------------------------------------------------- /db/migrate/002_create_roles.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/db/migrate/002_create_roles.rb -------------------------------------------------------------------------------- /lib/simple_roles.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/lib/simple_roles.rb -------------------------------------------------------------------------------- /lib/simple_roles/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/lib/simple_roles/configuration.rb -------------------------------------------------------------------------------- /lib/simple_roles/engine.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/lib/simple_roles/engine.rb -------------------------------------------------------------------------------- /lib/simple_roles/macros.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/lib/simple_roles/macros.rb -------------------------------------------------------------------------------- /lib/simple_roles/many.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/lib/simple_roles/many.rb -------------------------------------------------------------------------------- /lib/simple_roles/many/persistence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/lib/simple_roles/many/persistence.rb -------------------------------------------------------------------------------- /lib/simple_roles/many/roles_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/lib/simple_roles/many/roles_methods.rb -------------------------------------------------------------------------------- /lib/simple_roles/one.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/lib/simple_roles/one.rb -------------------------------------------------------------------------------- /lib/simple_roles/one/persistence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/lib/simple_roles/one/persistence.rb -------------------------------------------------------------------------------- /lib/simple_roles/one/roles_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/lib/simple_roles/one/roles_methods.rb -------------------------------------------------------------------------------- /lib/simple_roles/packager.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/lib/simple_roles/packager.rb -------------------------------------------------------------------------------- /lib/simple_roles/version.rb: -------------------------------------------------------------------------------- 1 | module SimpleRoles 2 | VERSION = "0.0.12" 3 | end 4 | -------------------------------------------------------------------------------- /lib/tasks/simple_roles_tasks.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/lib/tasks/simple_roles_tasks.rake -------------------------------------------------------------------------------- /script/rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/script/rails -------------------------------------------------------------------------------- /simple_roles.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/simple_roles.gemspec -------------------------------------------------------------------------------- /spec/dummy/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/Rakefile -------------------------------------------------------------------------------- /spec/dummy/app/assets/javascripts/application.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/assets/javascripts/application.js -------------------------------------------------------------------------------- /spec/dummy/app/assets/javascripts/default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/assets/javascripts/default.js -------------------------------------------------------------------------------- /spec/dummy/app/assets/javascripts/jquery.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/assets/javascripts/jquery.js -------------------------------------------------------------------------------- /spec/dummy/app/assets/javascripts/jquery_ujs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/assets/javascripts/jquery_ujs.js -------------------------------------------------------------------------------- /spec/dummy/app/assets/javascripts/posts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/assets/javascripts/posts.js -------------------------------------------------------------------------------- /spec/dummy/app/assets/stylesheets/application.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/assets/stylesheets/application.css -------------------------------------------------------------------------------- /spec/dummy/app/assets/stylesheets/default.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/assets/stylesheets/default.css -------------------------------------------------------------------------------- /spec/dummy/app/assets/stylesheets/posts.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/assets/stylesheets/posts.css -------------------------------------------------------------------------------- /spec/dummy/app/assets/stylesheets/scaffold.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/assets/stylesheets/scaffold.css -------------------------------------------------------------------------------- /spec/dummy/app/controllers/application_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/controllers/application_controller.rb -------------------------------------------------------------------------------- /spec/dummy/app/controllers/default_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/controllers/default_controller.rb -------------------------------------------------------------------------------- /spec/dummy/app/controllers/posts_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/controllers/posts_controller.rb -------------------------------------------------------------------------------- /spec/dummy/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /spec/dummy/app/helpers/default_helper.rb: -------------------------------------------------------------------------------- 1 | module DefaultHelper 2 | end 3 | -------------------------------------------------------------------------------- /spec/dummy/app/helpers/posts_helper.rb: -------------------------------------------------------------------------------- 1 | module PostsHelper 2 | end 3 | -------------------------------------------------------------------------------- /spec/dummy/app/mailers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/dummy/app/models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/dummy/app/models/post.rb: -------------------------------------------------------------------------------- 1 | class Post < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /spec/dummy/app/models/user.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/models/user.rb -------------------------------------------------------------------------------- /spec/dummy/app/views/default/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/default/index.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/devise/confirmations/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/devise/confirmations/new.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/devise/mailer/confirmation_instructions.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/devise/mailer/confirmation_instructions.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/devise/mailer/reset_password_instructions.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/devise/mailer/reset_password_instructions.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/devise/mailer/unlock_instructions.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/devise/mailer/unlock_instructions.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/devise/passwords/edit.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/devise/passwords/edit.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/devise/passwords/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/devise/passwords/new.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/devise/registrations/edit.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/devise/registrations/edit.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/devise/registrations/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/devise/registrations/new.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/devise/sessions/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/devise/sessions/new.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/devise/shared/_links.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/devise/shared/_links.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/devise/unlocks/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/devise/unlocks/new.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/layouts/application.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/layouts/application.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/posts/_form.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/posts/_form.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/posts/edit.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/posts/edit.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/posts/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/posts/index.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/posts/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/posts/new.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/views/posts/show.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/app/views/posts/show.html.erb -------------------------------------------------------------------------------- /spec/dummy/config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config.ru -------------------------------------------------------------------------------- /spec/dummy/config/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/application.rb -------------------------------------------------------------------------------- /spec/dummy/config/boot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/boot.rb -------------------------------------------------------------------------------- /spec/dummy/config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/database.yml -------------------------------------------------------------------------------- /spec/dummy/config/database_mysql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/database_mysql.yml -------------------------------------------------------------------------------- /spec/dummy/config/database_pgsql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/database_pgsql.yml -------------------------------------------------------------------------------- /spec/dummy/config/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/environment.rb -------------------------------------------------------------------------------- /spec/dummy/config/environments/development.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/environments/development.rb -------------------------------------------------------------------------------- /spec/dummy/config/environments/production.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/environments/production.rb -------------------------------------------------------------------------------- /spec/dummy/config/environments/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/environments/test.rb -------------------------------------------------------------------------------- /spec/dummy/config/initializers/backtrace_silencers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/initializers/backtrace_silencers.rb -------------------------------------------------------------------------------- /spec/dummy/config/initializers/devise.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/initializers/devise.rb -------------------------------------------------------------------------------- /spec/dummy/config/initializers/inflections.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/initializers/inflections.rb -------------------------------------------------------------------------------- /spec/dummy/config/initializers/mime_types.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/initializers/mime_types.rb -------------------------------------------------------------------------------- /spec/dummy/config/initializers/secret_token.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/initializers/secret_token.rb -------------------------------------------------------------------------------- /spec/dummy/config/initializers/session_store.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/initializers/session_store.rb -------------------------------------------------------------------------------- /spec/dummy/config/initializers/simple_roles.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/initializers/simple_roles.rb -------------------------------------------------------------------------------- /spec/dummy/config/initializers/wrap_parameters.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/initializers/wrap_parameters.rb -------------------------------------------------------------------------------- /spec/dummy/config/locales/devise.en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/locales/devise.en.yml -------------------------------------------------------------------------------- /spec/dummy/config/locales/en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/locales/en.yml -------------------------------------------------------------------------------- /spec/dummy/config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/config/routes.rb -------------------------------------------------------------------------------- /spec/dummy/db/migrate/010_devise_create_users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/db/migrate/010_devise_create_users.rb -------------------------------------------------------------------------------- /spec/dummy/db/migrate/20110925210726_create_user_roles.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/db/migrate/20110925210726_create_user_roles.rb -------------------------------------------------------------------------------- /spec/dummy/db/migrate/20110925210727_create_roles.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/db/migrate/20110925210727_create_roles.rb -------------------------------------------------------------------------------- /spec/dummy/db/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/db/schema.rb -------------------------------------------------------------------------------- /spec/dummy/db/seeds.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/db/seeds.rb -------------------------------------------------------------------------------- /spec/dummy/log/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/dummy/public/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/public/404.html -------------------------------------------------------------------------------- /spec/dummy/public/422.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/public/422.html -------------------------------------------------------------------------------- /spec/dummy/public/500.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/public/500.html -------------------------------------------------------------------------------- /spec/dummy/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/dummy/script/rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/script/rails -------------------------------------------------------------------------------- /spec/dummy/test/fixtures/posts.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/test/fixtures/posts.yml -------------------------------------------------------------------------------- /spec/dummy/test/fixtures/users.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/test/fixtures/users.yml -------------------------------------------------------------------------------- /spec/dummy/test/functional/default_controller_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/test/functional/default_controller_test.rb -------------------------------------------------------------------------------- /spec/dummy/test/functional/posts_controller_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/test/functional/posts_controller_test.rb -------------------------------------------------------------------------------- /spec/dummy/test/unit/helpers/default_helper_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/test/unit/helpers/default_helper_test.rb -------------------------------------------------------------------------------- /spec/dummy/test/unit/helpers/posts_helper_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/test/unit/helpers/posts_helper_test.rb -------------------------------------------------------------------------------- /spec/dummy/test/unit/post_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/test/unit/post_test.rb -------------------------------------------------------------------------------- /spec/dummy/test/unit/user_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy/test/unit/user_test.rb -------------------------------------------------------------------------------- /spec/dummy_spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/dummy_spec_helper.rb -------------------------------------------------------------------------------- /spec/simple_roles/configuration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/simple_roles/configuration_spec.rb -------------------------------------------------------------------------------- /spec/simple_roles/integration_many_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/simple_roles/integration_many_spec.rb -------------------------------------------------------------------------------- /spec/simple_roles/integration_one_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/simple_roles/integration_one_spec.rb -------------------------------------------------------------------------------- /spec/simple_roles/macros_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/simple_roles/macros_spec.rb -------------------------------------------------------------------------------- /spec/simple_roles/many_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/simple_roles/many_spec.rb -------------------------------------------------------------------------------- /spec/simple_roles/one_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/simple_roles/one_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/controller_macros.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/support/controller_macros.rb -------------------------------------------------------------------------------- /spec/support/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/support/database.yml -------------------------------------------------------------------------------- /spec/support/factories.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/support/factories.rb -------------------------------------------------------------------------------- /spec/support/migrations/010_create_one_users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/support/migrations/010_create_one_users.rb -------------------------------------------------------------------------------- /spec/support/migrations/011_create_users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/support/migrations/011_create_users.rb -------------------------------------------------------------------------------- /spec/support/models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/support/models/one_user.rb: -------------------------------------------------------------------------------- 1 | class OneUser < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /spec/support/models/user.rb: -------------------------------------------------------------------------------- 1 | class User < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /spec/support/setup_roles.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanislaw/simple_roles/HEAD/spec/support/setup_roles.rb --------------------------------------------------------------------------------