Sha256: 172a0035489fa464256c44d68c9dbfa79b771f1357ac6fe19cc06401a752dc8b

Contents?: true

Size: 759 Bytes

Versions: 53

Compression:

Stored size: 759 Bytes

Contents

<%
  column = if update_column.is_a? ActiveScaffold::DataStructures::Column
    update_column
  else
    active_scaffold_config.columns[update_column.to_sym]
  end
  @rendered ||= Set.new
  return if @rendered.include? column.name
  @rendered << column.name
-%>
<% if @record.authorized_for?(:crud_type => :read, :column => column.name) -%>
  ActiveScaffold.replace_html('<%= row_id %> .<%= column.name %>-column','<%= escape_javascript(render_list_column(get_column_value(@record, column), column, @record)) %>');
<% end -%>
<% if column.update_columns && !column.update_columns.empty? %>
  <%=  render(:partial => 'update_column', :collection => column.update_columns & active_scaffold_config.list.columns.names, :locals => {:row_id => row_id})%>
<% end %>

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
active_scaffold-3.4.4 app/views/active_scaffold_overrides/_update_column.js.erb
active_scaffold-3.4.3 app/views/active_scaffold_overrides/_update_column.js.erb
active_scaffold-3.4.2 app/views/active_scaffold_overrides/_update_column.js.erb
active_scaffold-3.4.1 app/views/active_scaffold_overrides/_update_column.js.erb
active_scaffold-3.4.0.1 app/views/active_scaffold_overrides/_update_column.js.erb
active_scaffold-3.4.0 app/views/active_scaffold_overrides/_update_column.js.erb
active_scaffold-3.3.3 app/views/active_scaffold_overrides/_update_column.js.erb
active_scaffold-3.3.2 app/views/active_scaffold_overrides/_update_column.js.erb
active_scaffold-3.3.1 app/views/active_scaffold_overrides/_update_column.js.erb
active_scaffold-3.3.0 app/views/active_scaffold_overrides/_update_column.js.erb
active_scaffold-3.3.0.rc3 app/views/active_scaffold_overrides/_update_column.js.erb
active_scaffold-3.3.0.rc2 app/views/active_scaffold_overrides/_update_column.js.erb
active_scaffold-3.3.0.rc app/views/active_scaffold_overrides/_update_column.js.erb