From 442f096940b0a445a827f0a760df3e138ba75cae Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Sun, 16 May 2021 17:26:27 +0530 Subject: [PATCH] fix naming and structure --- lib/custom_wizard/field.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/custom_wizard/field.rb b/lib/custom_wizard/field.rb index 0562b332..7d6ee940 100644 --- a/lib/custom_wizard/field.rb +++ b/lib/custom_wizard/field.rb @@ -40,7 +40,11 @@ class CustomWizard::Field } end - attr_reader *(attributes - accessible_attributes - excluded_attributes) + def self.readonly_attributes + attributes - accessible_attributes - excluded_attributes + end + + attr_reader *readonly_attributes attr_accessor *accessible_attributes def initialize(attrs)