Sha256: 5c72bf7d6b82e2523ee8104c4777eac009184e20d687921d9df035a57d837d3a

Contents?: true

Size: 359 Bytes

Versions: 17

Compression:

Stored size: 359 Bytes

Contents

require "rails/railtie"
require "shortener"

class Shortener::Railtie < ::Rails::Railtie #:nodoc:
  initializer "shortener.register.active.record.extension" do
    ActiveSupport.on_load :active_record do
      extend Shortener::ActiveRecordExtension
    end
    ActiveSupport.on_load :action_view do
      include Shortener::ShortenerHelper
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
shortener-0.8.0 lib/shortener/railtie.rb
shortener-0.7.2 lib/shortener/railtie.rb
shortener-0.7.1 lib/shortener/railtie.rb
shortener-0.6.2 lib/shortener/railtie.rb
shortener-0.6.1 lib/shortener/railtie.rb
shortener-0.5.6 lib/shortener/railtie.rb
shortener-0.5.5 lib/shortener/railtie.rb
shortener-0.5.4 lib/shortener/railtie.rb
shortener-0.5.3 lib/shortener/railtie.rb
shortener-0.5.2 lib/shortener/railtie.rb
shortener-0.4.1 lib/shortener/railtie.rb
shortener-0.5.1 lib/shortener/railtie.rb
shortener-0.5.0 lib/shortener/railtie.rb
shortener-0.4.0 lib/shortener/railtie.rb
shortener-0.3.1 lib/shortener/railtie.rb
shortener-0.3.0 lib/shortener/railtie.rb
shortener-0.2.0 lib/shortener/railtie.rb