def set_some_flags
      @flag_not_accessible_through_html   = true
      @flag_create_migration              = true
      @flag_create_model                  = true
      @create_id                          = true
      for attribute in attributes
        @flag_not_accessible_through_html = false if attribute.name == '_enabled'
        @flag_create_migration            = false if attribute.name == '_no_migration'
        @flag_create_model                = false if attribute.name == '_no_model'
        @create_id                        = false if attribute.name == "_id" && attribute.type == :false
      end
      @flag_create_controller             = @flag_create_model
      @flag_create_resource_route         = @flag_create_model
    end
def set_some_flags
      @flag_not_accessible_through_html   = true
      @flag_create_migration              = true
      @flag_create_model                  = true
      @create_id                          = true
      for attribute in attributes
        @flag_not_accessible_through_html = false if attribute.name == '_enabled'
        @flag_create_migration            = false if attribute.name == '_no_migration'
        @flag_create_model                = false if attribute.name == '_no_model'
        @create_id                        = false if attribute.name == "_id" && attribute.type == :false
      end
      @flag_create_controller             = @flag_create_model
      @flag_create_resource_route         = @flag_create_model
    end
using flags.