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 Spree | |
| class TaxonHeaderImage < Asset | |
| module Configuration | |
| module Paperclip | |
| extend ActiveSupport::Concern | |
| included do | |
| def self.styles | |
| attachment_definitions[:attachment][:styles] | |
| end |
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
| f = File.new("recome.txt", 'w') | |
| f << Recommendation.last.primary_plan_cost | |
| f.close |
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
| FROM ruby:2.6.1 | |
| RUN curl -sL https://deb.nodesource.com/setup_8.x | bash \ | |
| && apt-get update && apt-get install -y nodejs xvfb libfontconfig wkhtmltopdf && rm -rf /var/lib/apt/lists/* \ | |
| && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ | |
| && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ | |
| && apt-get update && apt-get install -y yarn && rm -rf /var/lib/apt/lists/* | |
| # Packages for wkhtmltopdf. These are available in ubuntu but not in debian 9. Base image uses debian 9. | |
| RUN wget -q -O /tmp/libjpeg-turbo8.deb http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_2.0.1-0ubuntu2_amd64.deb \ | |
| && dpkg -i /tmp/libjpeg-turbo8.deb \ |
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 PostList | |
| SEARCH_COLUMNS = [ | |
| 'documents.original_document_name', | |
| 'users.name', | |
| 'languages.name', | |
| 'post_statuses.label' | |
| ].freeze | |
| ALLOWED_SORT_COLUMNS = { | |
| 'title' => 'title', |
OlderNewer