generators/papermill_initializer/papermill_initializer.rb in papermill-1.3.6 vs generators/papermill_initializer/papermill_initializer.rb in papermill-1.4.0
- old
+ new
@@ -109,11 +109,11 @@
# Options passed on to SWFUpload.
# To remove an option when overriding, set it to nil.
:swfupload => {
- # :flash_url => "'/papermill/swfupload.swf'",
+ # :flash_url => "'/swfupload/swfupload.swf'",
# :button_image_url => "'/papermill/images/upload-blank.png'",
# :button_width => 61,
# :button_height => 22,
# :button_text => %{'<span class="button-text">#{I18n.t("papermill.upload-button-wording")}</span>'},
# :button_text_style => %{'.button-text { font-size: 12pt; font-weight: bold; }'},
@@ -228,11 +228,10 @@
# :authorize_create => "true",
# :authorize_multiple_modification => "true",
# :authorize_update_and_destroy => "true",
# For example, this is my own setup.
- # You'll need a public ApplicationController#current_user,
- # adapt the authorization part (can_edit(Assetable)) to your own needs :
+ # adapt the authorization part (can_edit(Assetable)) to your own authorization solution
# :authorize_create => %{
# unless @assetable.nil? || current_user.can_edit?(@assetable)
# render :update do |page|
# page << %{notify("Wrong credentials", "You can't create an asset here", "error");}