Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.31 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.31 KB

Build Status Coverage Status Code Climate

環境

  • Ruby 2.1.2
  • Rails 4.1.1

Requirements

  • MySQL

Setup

$ git clone https://github.com/onigra/pundit_sample.git
$ cd pundit_sample
$ bundle install

$ bundle exec rake db:create
$ bundle exec rake db:migrate
$ bundle exec rake db:seed_fu
$ bundle exec rails s

テストアカウント

詳細はこちら

email password 権限
[email protected] adminadmin 全ての操作が可能
[email protected] useruser Userのindex, show, create, update, destroyが可能。
Role(権限)に対しての操作は一切行えない
[email protected] rolerole Role(権限)のindex, show, create, update, destroyが可能。
Userに対しての操作は一切行えない
[email protected] viewview User、Roleの閲覧(index, show)のみ可能。
新規作成、更新、削除は行えない