Sha256: 7e70d2533374ed52364aec88b521fa23b4fb24b0eb2ddd1bf4d33fa2fb752a74
Contents?: true
Size: 525 Bytes
Versions: 9
Compression:
Stored size: 525 Bytes
Contents
require 'canard' require 'rails' module Canard class Railtie < Rails::Railtie initializer "canard.active_record" do |app| ActiveSupport.on_load :active_record do extend Canard::UserModel Canard.abilities_path ||= File.expand_path('abilities', Rails.root) Canard.find_abilities end end initializer "canard.abilities_reloading", :after => "action_dispatch.configure" do |app| ActionDispatch::Reloader.to_prepare { Canard.find_abilities } end end end
Version data entries
9 entries across 9 versions & 1 rubygems