Permalink
Browse files

use simpler define_options

  • Loading branch information...
1 parent e272788 commit 2706a7af593aeda3ad2d39e77abcca048a468384 @minad minad committed Sep 21, 2012
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

0 comments on commit 2706a7a

Please sign in to comment.