README.md in spreadsheet_architect-1.2.1 vs README.md in spreadsheet_architect-1.2.2

- old
+ new

@@ -14,13 +14,10 @@ Post.order(name: :asc).where(published: true).to_xlsx Post.order(name: :asc).where(published: true).to_ods Post.order(name: :asc).where(published: true).to_csv ``` -## Note: Major bug fix in 1.2.0 -v.1.1.0 had a major bug in it where it would use only the first records data for non-symbol methods. Please update to 1.2.0 from 1.1.0 as soon as possible. - ## Note: Breaking Changes in 1.1.0 The `spreadsheet_columns` method has been moved from the class to the instance. So now you can use string interpolation in your values. Please re-read the Model section below to see the changes. The side effect of this is if you are using the spreadsheet_columns option directly on the .to_* methods. # Install @@ -40,10 +37,11 @@ belongs_to :category has_many :tags #optional for activerecord classes, defaults to the models column_names def spreadsheet_columns + #[[Label, Method/Statement to Call on each Instance]....] [ ['Title', :title], ['Content', content], ['Author', (author.name rescue nil)], @@ -53,10 +51,10 @@ # OR just humanize the method to use as the label ex. "Title", "Content", "Author Name", "Published" [:title, content, (author.name rescue nil), :published] # OR a Combination of Both - [:title, :content, ['Author',(author.name rescue nil)], :published, ] + [:title, :content, ['Author',(author.name rescue nil)], :published] end end ``` # Usage