- Locks JSON api version which fixed an issue with downloading large binary files -- Tyler Ball
- Respect API limits when downloading theme assets from Shopify API -- Chris Saunders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'https://rubygems.org' | |
| gem 'shopify_theme' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cancelChanges: -> | |
| model = @get('model') | |
| if transaction = model.get('transaction') | |
| transaction.rollback() | |
| else | |
| alert "Could not roll back changes" | |
| @set('isEditing', false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [11:28:41] <csaunders> maybe you can leverage increment/decrement? | |
| [11:29:09] <csaunders> items = Item.where(query) | |
| [11:29:31] <csaunders> value > 0 ? items.increment(value) : items.decrement(value) | |
| [11:29:33] <csaunders> ¯\(°_o)/¯ | |
| [11:29:57] <csaunders> also I think my syntax is wrong :/ | |
| [11:30:09] <csaunders> but those might have an answer | |
| [11:31:08] <csaunders> keep in mind, increment/decrement don't fire callbacks… |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Blember.Post = DS.Model.extend | |
| title: DS.attr('string'), | |
| isCompleted: DS.attr('boolean') | |
| Blember.Post.FIXTURES = [ | |
| { | |
| id: 1, | |
| title: 'Hello World', | |
| body: 'This is my first post', | |
| isCompleted: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyFancy | |
| end | |
| describe "MyFancy" do | |
| it "should be able to be very fancy" | |
| it "should be possible to set my level of fancy" | |
| it "should add a number of exclamation points equal to the fancy level" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream brewwatcher_server { | |
| server 127.0.0.1:4567 fail_timeout=0; | |
| } | |
| http { | |
| include mime.types; | |
| default_type application/octet-stream; | |
| #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module AddsFunctionality | |
| extend ActiveSupport::Concern | |
| alias_method :foo, :baz | |
| end | |
| def baz | |
| puts "Hello Baz" | |
| end | |
| end |