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

- old
+ new

@@ -18,11 +18,10 @@ 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 @@ -108,9 +107,14 @@ 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?