Sha256: 7bdfbc136187b7d018753d92c9eb3bc2c3c8c40849b73c20aeb1279005a719a4

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

require "rbconfig"
require "mime/types"
require "rubygems"
gem "paperclip", "2.3.1.1"
require "paperclip"

I18n.load_path = [File.join(File.dirname(__FILE__), "../config/locales/papermill.yml")] + I18n.load_path
require 'papermill/extensions'
require 'papermill/flash_session_cookie_middleware.rb'

Object.send :include, PapermillObjectExtensions
Hash.send :include, PapermillHashExtensions
Array.send :include, PapermillArrayExtensions
String.send :include, StringToUrlNotFound unless String.instance_methods.include? "to_url"
Formtastic::SemanticFormBuilder.send(:include, PapermillFormtasticExtensions) rescue NameError

require 'papermill/papermill_options.rb'
begin
  require File.join(RAILS_ROOT, "config/initializers/papermill.rb") 
rescue LoadError, MissingSourceFile
end
require 'papermill/papermill_paperclip_processor'
require 'papermill/papermill'
require 'papermill/papermill_association'
require 'papermill/papermill_asset'
require 'papermill/form_builder'
require 'papermill/papermill_helper'
ActionView::Base.send :include, PapermillHelper
ActiveRecord::Base.send :include, Papermill

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
papermill-2.1.0 lib/papermill.rb