<commit_before>class Mybb::SponsorshipsController < InheritedResources::Base

  #actions :index, :show, :new, :edit, :create, :update, :destroy
  actions :create, :index
  respond_to :html, :js, :xml, :json

  def create
    create! (:notice => "You will be able to view his photos and full profile when you complete the sign-up process.") { mybb_sponsorships_url } #redirect to index action
  end


  protected

  def collection
    paginate_options ||= {}
    paginate_options[:page] ||= (params[:page] || 1)
    paginate_options[:per_page] ||= (params[:per_page] || 20)
    @sponsorships ||= end_of_association_chain.paginate(paginate_options)
  end

end<commit_msg>remove flash when sponsoring as it can be static content on the child page<commit_after>class Mybb::SponsorshipsController < InheritedResources::Base

  #actions :index, :show, :new, :edit, :create, :update, :destroy
  actions :create, :index
  respond_to :html, :js, :xml, :json

  protected

  def collection
    paginate_options ||= {}
    paginate_options[:page] ||= (params[:page] || 1)
    paginate_options[:per_page] ||= (params[:per_page] || 20)
    @sponsorships ||= end_of_association_chain.paginate(paginate_options)
  end

end
{'fraction_non_alphanumeric': 0.1267605633802817, 'fraction_numerical': 0.004971002485501243, 'mean_word_length': 4.98019801980198, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '521023', 'n_tokens_mistral': 405, 'n_tokens_neox': 386, 'n_words': 105}