Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use simpler define_options

  • Loading branch information...
commit 2706a7af593aeda3ad2d39e77abcca048a468384 1 parent e272788
@minad minad authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/temple/mixins/engine_dsl.rb
View
2  lib/temple/mixins/engine_dsl.rb
@@ -98,7 +98,7 @@ def chain_name(name)
def chain_class_constructor(filter, option_filter)
local_options = Hash === option_filter.last ? option_filter.pop : nil
raise(ArgumentError, 'Only symbols allowed in option filter') unless option_filter.all? {|o| Symbol === o }
- default_options.add_valid_keys(option_filter) if respond_to?(:default_options)
+ define_options(*option_filter) if respond_to?(:define_options)
proc do |engine|
filter.new(ImmutableHash.new(local_options, engine.options.only(option_filter)))
end
Please sign in to comment.
Something went wrong with that request. Please try again.