rails_generators/rx_scaffold/templates/model.rb.erb in dima-restfulx-1.2.3 vs rails_generators/rx_scaffold/templates/model.rb.erb in dima-restfulx-1.2.4

- old
+ new

@@ -22,19 +22,19 @@ <% end -%> <% if tree_model.size > 0 -%> acts_as_category <% end -%> <% if attachment_field.size > 0 -%> -<% if RxSettings.attachment_plugin == 'paperclip' -%> +<% if RestfulX::Configuration::RxSettings.attachment_plugin == 'paperclip' -%> # paperclip examples: # http://github.com/thoughtbot/paperclip/tree/master has_attached_file :<%= attachment_field[0] %>, :styles => { :medium => "600x480>", :thumb => "100x100#" } def attachment_url <%= attachment_field[0] %>.url(:original) end -<% elsif RxSettings.attachment_plugin == 'attachment_fu' -%> +<% elsif RestfulX::Configuration::RxSettings.attachment_plugin == 'attachment_fu' -%> # attachment_fu examples: # http://github.com/technoweenie/attachment_fu/blob/ab1e4f7b0b9de85e0c9decf061d2ef5c1dc0feaa/README#L56-69 has_attachment def attachment_url