Sha256: 63d19cbbee9edf3793ed6e6dd0848e1df1bb7bba568c941884df4964d57fc8eb

Contents?: true

Size: 497 Bytes

Versions: 4

Compression:

Stored size: 497 Bytes

Contents

module Scaffolding
  def self.valid_attribute_type?(type)
    [
      "boolean",
      "button",
      "cloudinary_image",
      "color_picker",
      "date_and_time_field",
      "date_field",
      "email_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

4 entries across 4 versions & 1 rubygems

Version Path
bullet_train-super_scaffolding-1.0.32 lib/scaffolding.rb
bullet_train-super_scaffolding-1.0.31 lib/scaffolding.rb
bullet_train-super_scaffolding-1.0.30 lib/scaffolding.rb
bullet_train-super_scaffolding-1.0.29 lib/scaffolding.rb