lib/strong_attributes/permissible.rb in strong_attributes-0.0.1 vs lib/strong_attributes/permissible.rb in strong_attributes-0.0.2

- old
+ new

@@ -35,15 +35,15 @@ protected def permitted_attributes @permitted_attributes ||= StrongAttributes::Permissions.new end - # Links presenter to permissions group of given presenter. - # @param [Presenter] parent_presenter + # Links permissions to that of the parent. + # @param [Permissible] parent # @param [Array<Symbol>] relative_path - # The prefix prepended before every permission check relative to parent presenter. - def link_permissions parent_presenter, relative_path = [] - @permitted_attributes = StrongAttributes::Permissions.new(parent_presenter.permitted_attributes, relative_path) + # The prefix prepended before every permission check relative to parent. + def link_permissions parent, relative_path = [] + @permitted_attributes = StrongAttributes::Permissions.new(parent.permitted_attributes, relative_path) end end end