lib/active_scaffold/helpers/action_link_helpers.rb
# params which mustn't be copying to nested links
params which mustn't be copying to nested links
params which mustn ' t be copying to nested links
def column_link_authorized?(link, column, record, associated)
        if column.association
          associated_for_authorized =
            if column.association.collection? || associated.nil?
              column.association.klass
            else
              associated
            end
          authorized, reason = associated_for_authorized.authorized_for?(:crud_type => link.crud_type, :reason => true)
          if link.crud_type == :create && authorized
            authorized, reason = record.authorized_for?(:crud_type => :update, :column => column.name, :reason => true)
          end
          [authorized, reason]
        else
          action_link_authorized?(link, record)
        end
      end
def column_link_authorized? ( link , column , record , associated ) if column . association associated_for_authorized = if column . association . collection? || associated . nil? column . association . klass else associated end authorized , reason = associated_for_authorized . authorized_for? ( :crud_type => link . crud_type , :reason => true ) if link . crud_type == :create && authorized authorized , reason = record . authorized_for? ( :crud_type => :update , :column => column . name , :reason => true ) end [ authorized , reason ] else action_link_authorized? ( link , record ) end end
params which mustn't be copying to nested links
params which mustn ' t be copying to nested links
link
<not_specific>
column
<not_specific>
record
<not_specific>
associated
<not_specific>