Skip to content

Commit

Permalink
use simpler define_options
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Sep 21, 2012
1 parent e272788 commit 2706a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/temple/mixins/engine_dsl.rb
Expand Up @@ -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
Expand Down

0 comments on commit 2706a7a

Please sign in to comment.