mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-10 17:16:05 +00:00
- Refactor HandleStripeEventService to better manage features by plan - Add constants for features available in each plan tier (Startup, Business, Enterprise) - Add channel_instagram to Startup plan features - Improve downgrade handling to properly disable higher-tier features - Clean up and optimize tests for maintainability - Add comprehensive test coverage for plan upgrades and downgrades --------- Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
8 lines
230 B
Ruby
8 lines
230 B
Ruby
require 'administrate/field/base'
|
|
|
|
class AccountLimitsField < Administrate::Field::Base
|
|
def to_s
|
|
data.present? ? data.to_json : { agents: nil, inboxes: nil, captain_responses: nil, captain_documents: nil }.to_json
|
|
end
|
|
end
|