Update hanami to 2.1 rc2
This commit is contained in:
@@ -12,8 +12,8 @@ module Adamantium
|
||||
include Deps["settings"]
|
||||
|
||||
def create_post(post:)
|
||||
unless settings.mastodon_token && settings.mastodon_server
|
||||
return Failure(:no_mastodon_credentials)
|
||||
unless settings.blue_sky_username && settings.blue_sky_url
|
||||
return Failure(:no_blue_sky_credentials)
|
||||
end
|
||||
|
||||
content = if post[:name]
|
||||
|
@@ -8,6 +8,10 @@ module Adamantium
|
||||
super(**options)
|
||||
end
|
||||
|
||||
def current_path
|
||||
request.fullpath
|
||||
end
|
||||
|
||||
def asset_by_name(name)
|
||||
if Hanami.env == :development
|
||||
"/assets/#{name}"
|
||||
|
Reference in New Issue
Block a user