mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
Remove unnecessary class attribute
This commit is contained in:
parent
605332ce76
commit
08c8937c96
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
module Draper
|
||||
class Base
|
||||
require 'active_support/core_ext/class/attribute'
|
||||
class_attribute :denied, :allowed, :source_class, :model_class
|
||||
class_attribute :denied, :allowed, :model_class
|
||||
attr_accessor :model
|
||||
|
||||
DEFAULT_DENIED = Object.new.methods
|
||||
|
@ -10,7 +10,7 @@ module Draper
|
|||
|
||||
def initialize(input)
|
||||
input.inspect
|
||||
self.class.source_class = input.class
|
||||
self.class.model_class = input.class if model_class.nil?
|
||||
@model = input
|
||||
build_methods
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue