Skip to content

Commit

Permalink
move module
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Jan 14, 2019
1 parent 8f3234b commit a86c520
Show file tree
Hide file tree
Showing 153 changed files with 978 additions and 993 deletions.
537 changes: 535 additions & 2 deletions app/models/concerns/enju_loc/enju_manifestation.rb

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions lib/enju_loc.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
require "enju_loc/engine"
require "enju_loc/loc_search"

module EnjuLoc
module ActsAsMethods
def self.included(base)
base.extend ClassMethods
end

module ClassMethods
def enju_loc_search
include EnjuLoc::LocSearch
end
end
end

class RecordNotFound < StandardError; end
class InvalidIsbn < StandardError; end
end

ActiveRecord::Base.send :include, EnjuLoc::ActsAsMethods
Loading

0 comments on commit a86c520

Please sign in to comment.