<commit_before>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]
    config.update.columns = form_columns
    config.create.columns = form_columns
    config.show.columns = form_columns + [:last_execution]
    
    config.list.columns = [:last_execution]
    config.create.label = :create_notification_label
  end
end<commit_msg>Issue #12: controllers<commit_after>class NotificationsController < ApplicationController
  authorize_resource

  active_scaffold :"notification" do |config|
  	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 = [:title, :frequency, :notification_offset, :query_offset, :last_execution]
    config.create.label = :create_notification_label
  end
end
{'fraction_non_alphanumeric': 0.09523809523809523, 'fraction_numerical': 0.001763668430335097, 'mean_word_length': 5.676470588235294, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3859368', 'n_tokens_mistral': 337, 'n_tokens_neox': 327, 'n_words': 64}