File: railtie.rb

package info (click to toggle)
ruby-has-scope 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 180 kB
  • sloc: ruby: 556; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 230 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
require 'rails/railtie'

module HasScope
  class Railtie < Rails::Railtie
    initializer "has_scope.deprecator" do |app|
      app.deprecators[:has_scope] = HasScope.deprecator if app.respond_to?(:deprecators)
    end
  end
end