lib/avo/base_resource.rb in avo-2.13.5.pre.2 vs lib/avo/base_resource.rb in avo-2.13.6.pre.1

- old
+ new

@@ -18,10 +18,11 @@ delegate :resources_path, to: :view_context delegate :t, to: ::I18n delegate :context, to: ::Avo::App attr_accessor :view + attr_accessor :model attr_accessor :reflection attr_accessor :user attr_accessor :params class_attribute :id, default: :id @@ -107,14 +108,9 @@ if model_class.present? && model_class.respond_to?(:base_class) self.class.model_class = model_class.base_class end end end - - def record - @model - end - alias :model :record def hydrate(model: nil, view: nil, user: nil, params: nil) @view = view if view.present? @user = user if user.present? @params = params if params.present?