lib/avo/base_resource.rb in avo-2.9.1.pre2 vs lib/avo/base_resource.rb in avo-2.9.1.pre3
- old
+ new
@@ -6,11 +6,10 @@
include ActionView::Helpers::UrlHelper
include Avo::Concerns::HasTools
include Avo::Concerns::HasModel
include Avo::Concerns::HasFields
include Avo::Concerns::HasStimulusControllers
- include Avo::Concerns::ModelClassConstantized
delegate :view_context, to: ::Avo::App
delegate :simple_format, :content_tag, to: :view_context
delegate :main_app, to: :view_context
delegate :avo, to: :view_context
@@ -28,9 +27,10 @@
class_attribute :title, default: :id
class_attribute :description, default: :id
class_attribute :search_query, default: nil
class_attribute :search_query_help, default: ""
class_attribute :includes, default: []
+ class_attribute :model_class
class_attribute :translation_key
class_attribute :default_view_type, default: :table
class_attribute :devise_password_optional, default: false
class_attribute :actions_loader
class_attribute :filters_loader