lib/generators/effective/views_generator.rb in effective_developer-0.4.3 vs lib/generators/effective/views_generator.rb in effective_developer-0.4.4

- old
+ new

@@ -15,10 +15,10 @@ argument :actions, type: :array, default: ['crud'], banner: 'action action' class_option :attributes, type: :array, default: [], desc: 'Included form attributes, otherwise read from model' def assign_attributes - @attributes = invoked_attributes.presence || resource_attributes + @attributes = (invoked_attributes.presence || resource_attributes).except(:archived) self.class.send(:attr_reader, :attributes) end def invoke_views say_status :invoke, :views, :white