Sha256: 41672bf717f84247f88a1b9acbf13654c864b409766f257c881f2c3698fb562a
Contents?: true
Size: 609 Bytes
Versions: 4
Compression:
Stored size: 609 Bytes
Contents
class Admin::BlogPosts5Controller < ApplicationController layout 'admin' admin_assistant_for BlogPost do |a| a.index do |index| index.conditions do |params| "user_id = #{params[:filter]}" unless params[:filter].blank? end index.columns :user, :title, :tags, :published_at, :textile index.search.include_params_in_form = true end a.form.columns :user, :title, :title_alt end protected def title_from_form(title_str, record_params) if title_str.blank? record_params[:title_alt] else title_str end end end
Version data entries
4 entries across 3 versions & 1 rubygems