lib/concerned/module_ext.rb in concerned-0.1.4 vs lib/concerned/module_ext.rb in concerned-0.1.5
- old
+ new
@@ -15,10 +15,10 @@
end
end
def include_concerns(*concerns)
options = concerns.extract_options!
- scope_name = options[:for] ? options[:for] : name
+ scope_name = options[:for] || options[:from] || name
concerns.flatten.each do |concern|
next if concern.blank?
require_concern scope_name, concern
concern_ns ||= [scope_name.to_s.camelize, concern.to_s.camelize].join('::')