Skip to content

Commit

Permalink
update hash syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Jun 10, 2018
1 parent fb20ba5 commit 32b7491
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/models/purchase_request.rb
Expand Up @@ -9,7 +9,7 @@ class PurchaseRequest < ActiveRecord::Base
validates_associated :user
validates_presence_of :user, :title
validate :check_price
validates :url, url: true, allow_blank: true, length: {:maximum => 255}
validates :url, url: true, allow_blank: true, length: {maximum: 255}
after_save :index!
after_destroy :index!
before_save :set_date_of_publication
Expand Down
4 changes: 2 additions & 2 deletions app/views/order_lists/index.rss.builder
@@ -1,4 +1,4 @@
xml.instruct! :xml, :version=>"1.0"
xml.instruct! :xml, version: "1.0"
xml.rss('version' => "2.0",
'xmlns:opensearch' => "http://a9.com/-/spec/opensearch/1.1/",
'xmlns:atom' => "http://www.w3.org/2005/Atom"){
Expand All @@ -24,7 +24,7 @@ xml.rss('version' => "2.0",
# rfc822
xml.pubDate order_list.created_at.utc.rfc822
xml.link order_list_url(order_list)
xml.guid order_list_url(order_list), :isPermaLink => "true"
xml.guid order_list_url(order_list), isPermaLink: "true"
end
end
}
Expand Down
4 changes: 2 additions & 2 deletions app/views/orders/index.rss.builder
@@ -1,4 +1,4 @@
xml.instruct! :xml, :version=>"1.0"
xml.instruct! :xml, version: "1.0"
xml.rss('version' => "2.0",
'xmlns:opensearch' => "http://a9.com/-/spec/opensearch/1.1/",
'xmlns:atom' => "http://www.w3.org/2005/Atom"){
Expand Down Expand Up @@ -31,7 +31,7 @@ xml.rss('version' => "2.0",
# rfc822
xml.pubDate order.created_at.utc.rfc822
xml.link order_url(order)
xml.guid order_url(order), :isPermaLink => "true"
xml.guid order_url(order), isPermaLink: "true"
end
end
}
Expand Down
4 changes: 2 additions & 2 deletions app/views/purchase_requests/index.rss.builder
@@ -1,4 +1,4 @@
xml.instruct! :xml, :version=>"1.0"
xml.instruct! :xml, version: "1.0"
xml.rss('version' => "2.0",
'xmlns:opensearch' => "http://a9.com/-/spec/opensearch/1.1/",
'xmlns:atom' => "http://www.w3.org/2005/Atom"){
Expand Down Expand Up @@ -31,7 +31,7 @@ xml.rss('version' => "2.0",
# rfc822
xml.pubDate purchase_request.created_at.utc.rfc822
xml.link purchase_request_url(purchase_request)
xml.guid purchase_request_url(purchase_request), :isPermaLink => "true"
xml.guid purchase_request_url(purchase_request), isPermaLink: "true"
end
end
}
Expand Down
2 changes: 1 addition & 1 deletion enju_purchase_request.gemspec
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |s|

s.add_development_dependency "enju_leaf", "~> 1.2.2"
s.add_development_dependency "sqlite3"
s.add_development_dependency "mysql2"
s.add_development_dependency "mysql2", "~> 0.4.10"
s.add_development_dependency "pg", "~> 0.21"
s.add_development_dependency "rspec-rails", "~> 3.5"
s.add_development_dependency "factory_bot_rails"
Expand Down

0 comments on commit 32b7491

Please sign in to comment.