Sha256: d39a3c3895a7419bc218f6705b1912503b63f69393a3966e2faaf310bbfde497
Contents?: true
Size: 639 Bytes
Versions: 47
Compression:
Stored size: 639 Bytes
Contents
module Scaffolding mattr_accessor :database, default: :postgresql def self.mysql? database == :mysql end def self.valid_attribute_type?(type) [ "boolean", "buttons", "cloudinary_image", "color_picker", "date_and_time_field", "date_field", "email_field", "emoji_field", "file_field", "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
47 entries across 47 versions & 1 rubygems