This file contains hidden or 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
| require 'active_record' | |
| ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') | |
| ActiveRecord::Base.logger = Logger.new(STDOUT) | |
| ActiveRecord::Schema.define do | |
| create_table :orders do |t| | |
| t.integer :total | |
| t.string :lock_version | |
| end |
This file contains hidden or 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
| # | |
| # Vayan a MagmaConf http://www.magmaconf.com | |
| # | |
| require 'minitest/autorun' | |
| require 'minitest/pride' | |
| class Animal | |
| attr_accessor :clase |
This file contains hidden or 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
| brazil = Spree::Country.where(name: "Brazil").last | |
| Spree::State.create!( | |
| [{name: "Acre", abbr: "AC", country: brazil}, | |
| {name: "Alagoas", abbr: "AL", country: brazil}, | |
| {name: "Amapá", abbr: "AP", country: brazil}, | |
| {name: "Amazonas", abbr: "AM", country: brazil}, | |
| {name: "Bahia", abbr: "BA", country: brazil}, | |
| {name: "Ceará", abbr: "CE", country: brazil}, | |
| {name: "Espírito Santo", abbr: "ES", country: brazil}, |
This file contains hidden or 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
| # Activate the gem you are reporting the issue against. | |
| # gem install activerecord -v '3.2.19' | |
| gem 'activerecord', '3.2.19' | |
| require 'active_record' | |
| require 'minitest/autorun' | |
| require 'logger' | |
| # Ensure backward compatibility with Minitest 4 | |
| Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) |
This file contains hidden or 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
| curl -XPOST 'http://localhost:9200/_aliases' -d ' | |
| { | |
| "actions" : [ | |
| { "add" : { "index" : "articles-1", "alias" : "articles" } } | |
| ] | |
| }' |
This file contains hidden or 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
| class Klass | |
| def public_method | |
| end | |
| private | |
| def private_method1 | |
| end | |
| def private_method2 |
This file contains hidden or 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
| Testing |
This file contains hidden or 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
| $ cucumber | |
| Using the default profile... | |
| F---F | |
| Failing Scenarios: | |
| cucumber features/autocomplete.feature:7 # Scenario: Autocomplete | |
| 1 scenario (1 failed) | |
| 3 steps (3 skipped) | |
| 0m0.006s |
This file contains hidden or 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
| %ul{:class => "sizes #{product_attribute.name.downcase}"} | |
| -if product_attribute.name == "Width" | |
| -values= product_attribute.values.sort{|x,y| x.id <=> y.id} | |
| -attname='Shoe Witdh' | |
| -objname="product[value_ids][#{product_attribute.solr_name}][]" | |
| -elsif product_attribute.name == "Youth Shoe Sizes" | |
| -values= Value.shoe_sizes | |
| -attname='Shoe Sizes' | |
| -objname="product[value_ids][shoe_sizes][]" | |
| %b |
This file contains hidden or 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
| <?php | |
| require_once( 'core.php' ); | |
| $t_core_path = config_get( 'core_path' ); | |
| require_once( $t_core_path . 'filter_api.php' ); | |
| require_once( $t_core_path . 'csv_api.php' ); | |
| require_once( $t_core_path . 'columns_api.php' ); | |
| ?> | |
| <?php auth_attempt_script_login('$MANTIS_USER', '$MANTIS_PASSWORD') ?> |
OlderNewer