Sha256: 6544670d090380fd4b40e93652b0688f691d29048e7121f1819ae61dd7516bf6
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
module Scaffolding def self.valid_attribute_type?(type) [ "boolean", "buttons", "cloudinary_image", "color_picker", "date_and_time_field", "date_field", "email_field", "emoji_field", "file_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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bullet_train-super_scaffolding-1.0.37 | lib/scaffolding.rb |
bullet_train-super_scaffolding-1.0.36 | lib/scaffolding.rb |
bullet_train-super_scaffolding-1.0.35 | lib/scaffolding.rb |