# File lib/generators/active_model/model/model_generator.rb, line 22 def write_properties? attributes.any?{|attr| attr.type == :write } end