This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
links.select {|item| item[:href].include?('order') }.map { |item| item[:href] }.first.match('.*\/order\/(.*)')[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TESTE_DATA = [ | |
["(a[0]+b[2c[6]]) {24 + 53}", true], | |
["f(e(d))", true], | |
["[()]{}([])", true], | |
["((b)", false], | |
["(c]", false], | |
["{(a[])", false], | |
["([)]", false], | |
[")(", false], | |
["", false], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Controllers::Crudify | |
extend ActiveSupport::Concern | |
included do | |
before_action :set_super_resource | |
before_action :set_resource, only: %i[show edit update] | |
show_search only: :index | |
show_back only: %i[new edit] |
OlderNewer