lib/arstotzka/class_methods.rb in arstotzka-1.3.2 vs lib/arstotzka/class_methods.rb in arstotzka-1.4.0
- old
+ new
@@ -98,11 +98,10 @@
# @see MethodBuilder Arstotzka::MethodBuilder
# @see
# https://www.rubydoc.info/gems/activesupport/5.2.2/ActiveSupport/Concern
# ActiveSupport::Concern
def expose(*attr_names, **options_hash)
- options = Options.new(options_hash.symbolize_keys)
- MethodBuilder.new(attr_names.map(&:to_sym), self, options).build
+ MethodBuilder.new(attr_names.map(&:to_sym), self, options_hash).build
end
# @private
# @api private
#