Sha256: 521f30dcce2e97dbc32b1208b84003638bd5a4a8427a47c7f5feda6c74d01bbf

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

require 'princely/pdf_helper'

if Mime::Type.lookup_by_extension(:pdf) != 'application/pdf'
  Mime::Type.register 'application/pdf', :pdf
end

ActionController::Base.send(:include, Princely::PdfHelper)
ActionController::Base.send(:include, Princely::AssetSupport) if
 (Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR > 0) ||
 (Rails::VERSION::MAJOR >= 4)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
princely-2.0.2 lib/princely/rails.rb
princely-2.0.1 lib/princely/rails.rb