app/models/feature.rb in usman-0.3.13 vs app/models/feature.rb in usman-0.3.14
- old
+ new
@@ -160,7 +160,27 @@
# >>> feature.display_name
# => "Products"
def display_name
"#{name.to_s.demodulize.pluralize.titleize}"
end
+
+ # Image Configuration
+ # -------------------
+ def image_configuration
+ {
+ "Image::FeaturePicture" => {
+ max_upload_limit: 1048576,
+ min_upload_limit: 1024,
+ resolutions: [400, 400],
+ form_upload_image_label: "Upload a new Image",
+ form_title: "Upload an Image (Feature)",
+ form_sub_title: "Please read the instructions below:",
+ form_instructions: [
+ "the filename should be in .jpg / .jpeg or .png format",
+ "the image resolutions should be <strong>400 x 400 Pixels</strong>",
+ "the file size should be greater than 100 Kb and or lesser than <strong>10 MB</strong>"
+ ]
+ }
+ }
+ end
end
\ No newline at end of file