There is currently a problem with caching in AMS Caching doesn't improve performance. Adding caching may slow down your application, rather than speeding it up. We suggest you benchmark any caching you implement before using in a production enviroment To cache a serializer, call cache and pass its options. The options are the same options of ActiveSupport::Cache::Store, plus a key option that will
Configuration Webpacker gives you a default set of configuration files for test, development and production environments in config/webpack/*.js. You can configure each individual environment in their respective files or configure them all in the base config/webpack/environment.js file. By default, you don't need to make any changes to config/webpack/*.js files since it's all standard production-re
I'm not sure if this is the right approach and maybe I've not understood this new part of the pipeline, yet, but: Suppose, the major part of the app code lives inside a rails engine including all javascripts. And there are several main apps using that engine. The main apps only contain some layout changes and some minor patches. Therefore, in order to integrate the webpacker gem into this setup, I
begin require "bundler/inline" rescue LoadError => e $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" raise e end gemfile(true) do source "https://rubygems.org" # gem "rails", github: "rails/rails" gem "rails", github: "kamipo/rails", branch: "fix_association_with_scope_including_joins" gem "arel", github: "rails/arel" gem "sqlite3" end require "active_record" r
We pretty frequently get bug reports that "dirty is broken inside of after callbacks". Intuitively they are correct. You'd expect Model.after_save { puts changed? }; model.save to do the same thing as model.save; puts model.changed?, but it does not. However, changing this goes much farther than just making the behavior more intuitive. There are a ton of places inside of AR that can be drastically
Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Sign up Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Pick a username Email Address Password Sign up for GitHub By clicking “Sign up for GitHub”, you agr
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く