Sha256: 6ff22dc844aee14afd399375a246224da890b291cd5522121f83736bfadb14b7
Contents?: true
Size: 795 Bytes
Versions: 9
Compression:
Stored size: 795 Bytes
Contents
module Scaffolding mattr_accessor :database, default: :postgresql def self.mysql? database == :mysql end def self.valid_attribute_type?(type) [ "boolean", "buttons", # TODO: We're leaving cloudinary_image here for now for backwards compatibility. # We should remove it in a future major update. "cloudinary_image", "color_picker", "date_and_time_field", "date_field", "email_field", "emoji_field", "file_field", "image", "number_field", "options", "password_field", "phone_field", "super_select", "text_area", "text_field", "trix_editor" ].include?(type.gsub(/{.*}/, "")) # Pop off curly brackets such as `super_select{class_name=Membership}` end end
Version data entries
9 entries across 9 versions & 1 rubygems