Sha256: c08e3496f839e63693acb328840103e567672c799ae408efdc62b7d87508a9ed

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 Bytes

Contents

require 'active_record'
require 'active_support/inflector'

$LOAD_PATH.unshift(File.dirname(__FILE__))

module ActsAsSaveable

  if defined?(ActiveRecord::Base)
    require 'acts_as_saveable/extenders/saveable'
    require 'acts_as_saveable/extenders/saver'
    require 'acts_as_saveable/save'
    ActiveRecord::Base.extend ActsAsSaveable::Extenders::Saveable
    ActiveRecord::Base.extend ActsAsSaveable::Extenders::Saver
  end

end

require 'acts_as_saveable/extenders/controller'
ActiveSupport.on_load(:action_controller) do
  include ActsAsSaveable::Extenders::Controller
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_saveable-0.10.1 lib/acts_as_saveable.rb