Remove unexpose and unexpose_if_exposed from your actions. Pages now
ignore unused exposures so these methods have been removed.

Change require "lucky_record" to require "avram" in src/dependencies

Rename config/log_handler.cr to config/logger.cr

Replace config/logger.cr with this:

require"file_utils"
logger =ifLucky::Env.test?
# Logs to `tmp/test.log` so you can see what's happening without having# a bunch of log output in your specs results.FileUtils.mkdir_p("tmp")
Dexter::Logger.new(
io:File.new("tmp/test.log", mode:"w"),
level:Logger::Severity::DEBUG,
log_formatter:Lucky::PrettyLogFormatter
)
elsifLucky::Env.production?
# This sets the log formatter to JSON so you can parse the logs with# services like Logentries or Logstash.## If you want logs like in develpoment use `Lucky::PrettyLogFormatter`.Dexter::Logger.new(
io:STDOUT,
level:Logger::Severity::INFO,
log_formatter:Dexter::Formatters::JsonLogFormatter
)
else# For development, log everything to STDOUT with the pretty formatter.Dexter::Logger.new(
io:STDOUT,
level:Logger::Severity::DEBUG,
log_formatter:Lucky::PrettyLogFormatter
)
endLucky.configure do |settings|
settings.logger = logger
endAvram::Repo.configure do |settings|
settings.logger = logger
end

Replace bin/lucky in your .gitignore with just /bin/. Lucky projects
should now put bash scripts in /script. Binaries go in /bin/ and are
ignored.

id in actions using route now have the underscored version of the
resource name prepended. You'll need to rename your id calls to
<resource_name>_id.

# Example from v0.12classUsers::Show < BrowserAction
route do# Using the 'id' paramUserQuery.find(id)
endend# Would now beclassUsers::Show < BrowserAction
route do# Now it is 'user_id'UserQuery.find(user_id)
endend