Skip to content

Commit

Permalink
Require forwardable and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
cpetersen committed Mar 30, 2016
1 parent 4e5a55f commit d8d273e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
39 changes: 20 additions & 19 deletions lib/assaydepot/model.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'forwardable'
module AssayDepot
module Model
module ClassMethods
Expand All @@ -15,24 +16,24 @@ def get(id)
def self.included(base)
base.extend ClassMethods
base.extend Forwardable
base.def_delegators :private_results,
:each,
:[],
:count,
:collect,
base.def_delegators :private_results,
:each,
:[],
:count,
:collect,
:map,
:tap,
:<=>,
:compact,
:each_index,
:each_with_index,
:empty?,
:flatten,
:include?,
:index,
:length,
:first,
:last,
:tap,
:<=>,
:compact,
:each_index,
:each_with_index,
:empty?,
:flatten,
:include?,
:index,
:length,
:first,
:last,
:keep_if,
:reject,
:reverse
Expand All @@ -47,7 +48,7 @@ def initialize(options={})
@search_options = options[:search_options] || {:page => 1}
end

def initialize_copy(source)
def initialize_copy(source)
super
@search_query = @search_query.dup
@search_facets = @search_facets.dup
Expand Down Expand Up @@ -106,4 +107,4 @@ def search_results
end
end
end
end
end
2 changes: 1 addition & 1 deletion lib/assaydepot/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module AssayDepot
VERSION = "0.0.3"
VERSION = "0.0.4"
end

0 comments on commit d8d273e

Please sign in to comment.