Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tiny changes

  • Loading branch information...
commit fb5c59196e9f743f28fd6bc6b4314f48bc413b49 1 parent e9d7af5
@nov authored
View
2  app/assets/stylesheets/_common_variables.scss
@@ -14,4 +14,4 @@ $green: #6c0;
/* border */
-$default_radius: 6px;
+$default_radius: 5px;
View
1  app/assets/stylesheets/layout.css.scss
@@ -11,7 +11,6 @@ dl {
.boxes {
display: -webkit-box;
- display: -moz-box;
}
@media only screen and (max-width: 767px) {
View
8 app/views/layouts/application.html.erb
@@ -12,11 +12,9 @@
<%= csrf_meta_tags %>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
</head>
-<body>
+<%= content_tag :body, class: controller_name do %>
<%= render 'layouts/header' %>
- <%= content_tag :div, class: params.values_at(:main, :controller, :action).join(' ') do %>
- <%= yield %>
- <% end %>
+ <%= yield %>
<%= render 'layouts/footer' %>
-</body>
+<% end %>
</html>
View
2  config/initializers/wrap_parameters.rb
@@ -4,7 +4,7 @@
# which will be enabled by default in the upcoming version of Ruby on Rails.
# Enable parameter wrapping for JSON. You can disable this by set :format to empty array.
-ActionController::Base.wrap_parameters :format => [:json]
+ActionController::Base.wrap_parameters format: [:json]
# Disable root element in JSON by default.
if defined?(ActiveRecord)
View
2  lib/notification.rb
@@ -3,7 +3,7 @@ def flash_to_cookie
[:notice, :warn, :error].each do |key|
if (_flash_ = flash[key]).present?
if _flash_.is_a?(String)
- _flash_ = {:text => _flash_}
+ _flash_ = {text: _flash_}
end
cookies["flash.#{key}"] = _flash_.to_json
flash.discard(key)
Please sign in to comment.
Something went wrong with that request. Please try again.