Author Archives: Prasad Surase

Overriding CircleCI settings to load data from seed and rake tasks.

CircleCI generates its own database.yml for every build. It then creates the database using the newly created database.yml file and loads the schema. It sets the environment to ‘test’ and runs the test cases. I needed some data that was … Continue reading

Posted in Ruby on Rails | Tagged | 1 Comment

Dynamic roles and permissions using cancan

Most of us already use cancan for authorization, where we define the Role Based Access (RBAC) to various models in the Ability class. However, any changes to these abilities, requires code changes to the Ability class and restarting the application … Continue reading

Posted in Ruby on Rails | Tagged , , , | 40 Comments