Logo
Explore Help
Register Sign In
liangxj/assistant-storefront
1
0
Fork 0
You've already forked assistant-storefront
Code Issues Pull Requests Actions 3 Packages Projects Releases Wiki Activity
Files
master
assistant-storefront/app/models/concerns/access_tokenable.rb

12 lines
252 B
Ruby
Raw Permalink Normal View History

Initial commit: Add logistics and order_detail message types - Add Logistics component with progress tracking - Add OrderDetail component for order information - Support data-driven steps and actions - Add blue color scale to widget SCSS - Fix node overflow and progress bar rendering issues - Add English translations for dashboard components Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-26 11:16:56 +08:00
module AccessTokenable
extend ActiveSupport::Concern
included do
has_one :access_token, as: :owner, dependent: :destroy_async
after_create :create_access_token
end
def create_access_token
AccessToken.create!(owner: self)
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 63ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API