Skip to content

Commit

Permalink
Issue #12: controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoFelipe committed Jan 25, 2014
1 parent 68c6a13 commit 4b48fbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/notifications_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ class NotificationsController < ApplicationController
authorize_resource

active_scaffold :"notification" do |config|
form_columns = [:frequency, :notification_offset, :query_offset, :sql_query, :to_template, :subject_template, :body_template]
form_columns = [:title, :frequency, :notification_offset, :query_offset, :sql_query, :to_template, :subject_template, :body_template]
config.update.columns = form_columns
config.create.columns = form_columns
config.show.columns = form_columns + [:last_execution]

config.list.columns = [:last_execution]
config.list.columns = [:title, :frequency, :notification_offset, :query_offset, :last_execution]
config.create.label = :create_notification_label
end
end

0 comments on commit 4b48fbb

Please sign in to comment.