Sha256: 74021329bbb2840e492b1975530b941cb911d1958a1ce8a7b5ece06e0334f7d8

Contents?: true

Size: 726 Bytes

Versions: 8

Compression:

Stored size: 726 Bytes

Contents

require "enju_resource_merge/engine"
require "will_paginate/array"

module EnjuResourceMerge
  def self.included(base)
    base.extend(ClassMethods)
  end

  module ClassMethods
    def enju_resource_merge
      include EnjuResourceMerge::InstanceMethods
    end
  end

  module InstanceMethods
    private

    def get_patron_merge_list
      @patron_merge_list = PatronMergeList.find(params[:patron_merge_list_id]) if params[:patron_merge_list_id]
    end

    def get_series_statement_merge_list
      @series_statement_merge_list = SeriesStatementMergeList.find(params[:series_statement_merge_list_id]) if params[:series_statement_merge_list_id]
    end
  end
end

ActionController::Base.send(:include, EnjuResourceMerge)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enju_resource_merge-0.0.17 lib/enju_resource_merge.rb
enju_resource_merge-0.0.16 lib/enju_resource_merge.rb
enju_resource_merge-0.0.15 lib/enju_resource_merge.rb
enju_resource_merge-0.0.14 lib/enju_resource_merge.rb
enju_resource_merge-0.0.13 lib/enju_resource_merge.rb
enju_resource_merge-0.0.12 lib/enju_resource_merge.rb
enju_resource_merge-0.0.11 lib/enju_resource_merge.rb
enju_resource_merge-0.0.10 lib/enju_resource_merge.rb