Sha256: ad177098be3dc686415ffa5124552c198494c5857ae7bb9ae5086d69a5b4a1d6

Contents?: true

Size: 641 Bytes

Versions: 23

Compression:

Stored size: 641 Bytes

Contents

class Oxen::PrintJobsController < AbstractResourcesController
  private
    # Never trust parameters from the scary internet, only allow the white list through.
    # "printer"=>{"name"=>"Label", "cups_printer"=>"havehuset_label", "command"=>"lp %2 %3", "paper"=>"A4", "active"=>"1"}}
    def resource_params
      params[:print_job][:account_id] = current_user.admin? ? params[:parent_id] : current_user.account.id
      params.require(:print_job).permit(:account_id, :printer_id, :printed_by_id, :printed_by_type, :view_template_path, :name, :printing_class, :print_driver, :print_format, :state, :paper, :copies, :print_sql)
    end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
oxen_printer-0.4.15 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.4.14 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.4.13 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.4.12 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.4.11 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.4.9 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.4.8 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.4.7 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.4.5 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.4.4 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.4.3 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.4.2 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.4.1 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.3.4 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.3.3 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.3.2 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.3.1 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.3.0 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.2.9 app/controllers/oxen/print_jobs_controller.rb
oxen_printer-0.2.8 app/controllers/oxen/print_jobs_controller.rb