text stringlengths 10 2.61M |
|---|
# frozen_string_literal: true
require_relative 'helpers/attrs'
require_relative 'token_buffer'
module StringCheese
class TokenBufferManager
include Helpers::Attrs
# Returns the buffer, an Array of TokenBuffers
attr_reader :buffer
attr_reader :buffer_index
def initialize
initialize_buffer... |
# -*- coding: UTF-8 -*-
#
# Author:: lnznt
# Copyright:: (C) 2011 lnznt.
# License:: Ruby's
#
require 'gmrw/extension/attribute'
class GMRW::Extension::Attribute
module Is
def boolean? ; (this == true || this == false) rescue false ; end
def array?(*a, &b) ; eq?(Array, *a) {... |
class Photo < ActiveRecord::Base
belongs_to :user
has_attached_file :photo, :styles => { :small => "100x80>", :thumb => "100x100>" }, :url => "/:attachment/:id/:style/:basename.:png",
:path => ":rails_root/public/:attachment/:id/:style/:basename.:png"
validates_attachment_content_type :photo, :content_t... |
#!/usr/bin/env ruby
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rails/all'
req... |
# encoding: utf-8
require 'net/http'
require 'net/https'
require 'rack/utils'
require 'ostruct'
module FeedBurner
module Api
autoload :Feed, 'feedburner/api/feed'
autoload :Entry, 'feedburner/api/entry'
autoload :Item, 'feedburner/api/item'
autoload :Referer, 'feedburner/api/referer'
... |
# == Schema Information
# Schema version: 57
#
# Table name: adbackends
#
# id :integer(11) not null, primary key
# name :string(255)
#
class Adbackend < ActiveRecord::Base
has_many :ads, :dependent => :destroy
validates_presence_of :name
validates_uniqueness_of :name
end
|
#require 'net/ldap'
#require 'mechanize'
class User < ActiveRecord::Base
has_many :schedules
serialize :friends
serialize :objectm
serialize :likes
serialize :mutualfriends
has_many :matchings, :dependent => :destroy
has_many :matches, -> { where("status = 'accepted") }, :through => :matchings
has_many :reques... |
module Task
class RelationRecord < ActiveRecord::Base
self.table_name = 'task_relations'
self.inheritance_column = nil
self.record_timestamps = false
belongs_to :subtask, class_name: ::Task::Record
belongs_to :supertask, class_name: ::Task::Record
attr_accessible :type, :addition_date, :remo... |
require 'rails_helper'
RSpec.describe MakersController, type: :controller do
describe "mkaer" do
let(:year){create :year}
let(:maker){create :maker,{year_id: year.id}}
let(:user){create :mangement}
describe "index" do
it "indexへ遷移すること" do
get :index,session:{id: user.id}
expect(... |
class SessionController < ApplicationController
skip_before_action :auth!
def new
end
def create
user = User.authenticate(params[:user][:email], params[:user][:password])
unless user.nil?
session[:user] = user.id
redirect_to root_url, notice: "Welcome, "+user.name+"!"
end
end
def destroy
s... |
class ProvidersController < ApplicationController
def index
feelings = params[:feelings] || session[:feelings]
session[:feelings] = feelings
if params[:refine_search].nil?
params[:refine_search] = { "zip_code"=>"60606",
"distance"=>"5",
... |
Rails.application.routes.draw do
resources :sharks do
resources :posts
end
root 'sharks#index'
end
|
module ApplicationHelper
def is_firefox?
request.env['HTTP_USER_AGENT'].split(' ')[-1].split('/')[0] == 'Firefox'
end
end |
#==============================================================================
# Composite Graphics / Visual Equipment
# Version: 1.0.1
# Author: modern algebra (rmrk.net)
# Date: January 13, 2013
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Description:
#
# This sc... |
class PagesController < UsersBaseController
# The number of records to show (on load and after updates), for speed.
# Gets slower with more records.
MAX_RECORDS = ENV["MAX_RECORDS_TO_SHOW"] ? ENV["MAX_RECORDS_TO_SHOW"].to_i : 300
def index
render locals: {
max_records: MAX_RECORDS,
comments: Co... |
class Dog
attr_accessor :name
attr_reader :breed
def initialize name, breed
@name = name
@breed = breed
end
def bark
"#{@name} barks: AuAu!"
end
end
rex = Dog.new 'Rex', 'Pug'
rex.name = 'Jamal'
puts rex.bark |
module API
module V1
# Controller for API actions related to Invite model
class InvitesController < ApplicationController
# POST /members/invites
# expect :body param with list of email addresses, like ['user@test.com', 'member@mail.com', ...]
def create
InviteJob.perform_later(param... |
require 'spec_helper'
describe Lolita::Configuration::Filter do
let(:dbi){Lolita::DBI::Base.new(Post)}
describe "#initialize" do
it "should create new filter with block" do
Lolita::Configuration::Filter.new(dbi) do
end
end
it "should create new filter without block" do
Lolita::Conf... |
# frozen_string_literal: true
class SubscriptionDecorator < Draper::Decorator
delegate_all
decorates_association :lesson
def origin
object.origin_text
end
end
|
class DateShouldBeDate < ActiveRecord::Migration
def self.up
add_column :transactions, :temp_date, :datetime
Transaction.reset_column_information
Transaction.all.each do |transaction|
if transaction.date.present? && transaction.date.class.is_a?(String)
transaction.temp_date = Date.parse(tra... |
class SessionsController < ApplicationController
def create
if customer = Customer.authenticate(params[:username], params[:password])
session[:user_id] = customer.id
#storing username here for convience, so don't have to go back to database
session[:username] = customer.username
... |
describe Dispatcher, :email do
describe "#deliver_new_proposal_emails" do
it "sends emails to the requester and first approver" do
proposal = create(:proposal, :with_approver, :with_observer)
create(:ncr_work_order, proposal: proposal)
Dispatcher.new(proposal).deliver_new_proposal_emails
... |
class AddColumnsToCar < ActiveRecord::Migration[5.0]
def change
add_column :cars, :carmax_link, :string
add_column :cars, :description, :string
rename_column :quizzes, :type, :car_type
end
end
|
class ChangeMoviesCheckedOutCountName < ActiveRecord::Migration[6.0]
def change
remove_column :customers, :movies_checked_out_count
add_column :customers, :videos_checked_out_count, :integer, default: 0
end
end
|
module Algorithmia
class Response
def initialize(result)
@json = result
end
def result
# successful result hash from the algorithm
@json["result"]
end
def metadata
@json["metadata"]
end
def duration
metadata["duration"]
end
def content_type
m... |
class Battery < Item
def initialize
super("Battery", 25)
end
def recharge(robot)
if robot.is_a?(Robot)
robot.charge(25)
end
end
end |
class Song < ActiveRecord::Base
belongs_to :artist
has_many :genres, through: :songs
end
|
# encoding: utf-8
require 'date'
require 'erb'
module GHI
module Formatting
class << self
attr_accessor :paginate
end
self.paginate = true # Default.
attr_accessor :paging
autoload :Colors, 'ghi/formatting/colors'
include Colors
CURSOR = {
:up => lambda { |n| "\e[#{n}A"... |
require 'spec_helper'
module TestModule
extend BetfairApiNgRails::Api::RequestMethods
end
describe "listCountries request method" do
it_behaves_like 'simple list filtering request', 'listCountries' do
let(:method_name) { "list_countries" }
let(:result_class) { BetfairApiNgRails::CountryCodeResult }
... |
require "spec_helper"
feature "user follows and unfollows user" do
scenario "with existing user" do
comedies = Fabricate(:category)
monk = Fabricate(:video, title: "Monk", category: comedies)
leader = Fabricate(:user, full_name: "Leader Joe", email: "leader_yo@test.com", password: "123456")
re... |
class CreditHistoriesController < ApplicationController
load_and_authorize_resource
before_action :set_credit_history, only: [:show, :edit, :update, :destroy]
layout :load_layout
# GET /credit_histories
# GET /credit_histories.json
def index
@credit_histories = CreditHistory.all
end
# GET /credit_... |
# U2.W5: Build a simple guessing game SOLO CHALLENGE
# I worked on this challenge by myself.
# 2. Pseudocode
# Input: An integer for user's guess
# Output: Verification if guess is too high, too low, or matches correct answer
# Steps:
# => Create class for game and initialize it with the "correct answer"
# => Defin... |
class AddFieldsToUsers < ActiveRecord::Migration
def change
add_column :users, :admin, :boolean, default: false
add_column :users, :username, :string
add_column :users, :about_me, :text
add_column :users, :banned, :boolean, default: false
add_column :users, :ban_reason, :text, default: nil
add_ind... |
require "fog/core/collection"
require "fog/brkt/models/compute/csp_image"
module Fog
module Compute
class Brkt
class CspImages < Fog::Collection
model Fog::Compute::Brkt::CspImage
# @return [Image] image
attr_accessor :image
# Get CSP images.
# Requires {#image} at... |
class AddTechnologiesToEntries < ActiveRecord::Migration[5.0]
def change
add_column :entries, :technologies, :text
end
end
|
require 'rails_helper'
RSpec.describe PieceHistoricSituation, type: :model do
it 'has a valid factory' do
expect(create :piece_historic_situation).to be_valid
end
describe 'Validations' do
it { should validate_presence_of :piece_id }
it { should validate_presence_of :user_id }
it { should validate_presence... |
class Project < ActiveRecord::Base
has_many :rewards
has_many :pledges
has_many :comments
has_many :claims
has_many :owner_updates
has_many :users, through: :pledges # backers
belongs_to :user # project owner
belongs_to :category
validates :user_id, presence: true
validates :title, :description, :g... |
module Refinery
module Caststone
class ComponentProductQuery
def self.call(product_id)
Component.where(product: product_id , deleted_at: nil)
end
end
end
end
|
require "mechanize"
require 'open-uri'
require 'fileutils'
require ENV['ABT'] + '/src/lib/config.rb'
class Atcoder
attr_reader :in_and_out, :task_list_href, :submit_links # アクセスメソッドを定義
# 問題名とサンプル、を保存する空のhashを作成
def initialize
@agent = Mechanize.new
@task_list_href = {} # 問題名と問題ページのURLを保存
@in_and... |
class Map
def initialize
@map = []
end
def assign(key, value)
@map.each do |subarr|
if subarr[0] == key
subarr[1] = value
return nil
end
end
@map << [key, value]
end
def lookup(key)
@map.each do |subarr|
if subarr[0] == key
return subarr[1]
... |
class HousesController < ApplicationController
def index
@house = House.all
end
def new
@house = House.new
end
def update
@house = House.find(params[:id])
@house.update_attributes(house)
redirect_to houses_path
end
def edit
@house = House.find(params[:id])
end
def create
... |
class AddPackTInvoiceIngredients < ActiveRecord::Migration
def change
change_table :invoice_ingredients do |t|
t.decimal :pack_qty
t.decimal :pack_size
end
end
end
|
# frozen_string_literal: true
require 'test_helper'
module Vedeu
class DSLBorderTestClass
include Vedeu::DSL::Border
def model
self
end
def name
:vedeu_dsl_border_test_class
end
end # DSLBorderTestClass
module DSL
describe Border do
let(:described) { Vedeu::DSL:... |
class AddHowDidYouHearAboutUsToPotentialMember < ActiveRecord::Migration
def change
add_column :potential_members, :how_did_you_hear, :text
end
end
|
class ApplicationMailer < ActionMailer::Base
add_template_helper(EmailHelper)
default from: "marlon@affordablehousingapp.com"
layout 'mailer'
end
|
class OrdersController < ApplicationController
before_filter :require_admin, only: [:edit, :delete]
before_filter :require_auth, only: [:index, :show]
def index
@orders = current_admin ? Order.all : current_user.orders
@invoices = StripeCustomer.get_invoices(current_user)
respond_to do |format|... |
class NotificationMailer < ApplicationMailer
helper ApplicationHelper
class NoPhoneNumberOrNameChangeError < ArgumentError; end
rescue_from NoPhoneNumberOrNameChangeError do |exception|
Rails.logger.warn exception.message
end
def court_reminders_success(user)
@reminders_scheduled = CourtReminder.sch... |
require 'minitest/autorun'
require 'minitest/reporters'
require 'minitest/skip_dsl'
require_relative '../lib/order'
Minitest::Reporters.use!
#_______________ WAVE 1 _______________
describe "Order Wave 1" do
#############################################################################################
# INITIALI... |
module Readable
def read?
self.read == true
end
end
|
class Hash
def deep_symbolize
self.inject({}) do |new_hash, (key,value)|
new_hash[key.to_sym] = value.deep_symbolize
new_hash
end
end
end
class Array
def deep_symbolize
map(&:deep_symbolize)
end
end
class Object
def deep_symbolize
return self
end
end |
class User < ActiveRecord::Base
validates :name, presence: true, uniqueness: true, length: {minimum:5, maximum:10}
VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
validates :email, presence: true, format: { with:VALID_EMAIL_REGEX }
has_secure_password
has_many :projects
has_many :comments
has_man... |
class CreateClientApplications < ActiveRecord::Migration[5.0]
def change
create_table :client_applications do |t|
t.string :name, null: false
t.string :client_id, null: false
t.string :client_secret, null: false
t.boolean :in_house_app, null: false, default: false
t.references :user,... |
require 'spec_helper'
describe ApplicationHelper do
describe "#change_to_https" do
it "should return the url changed with https" do
url = "http://www.google.com"
change_to_https(url).should == "https://www.google.com"
end
end
describe "#facebook_friends" do
it "should return an array of... |
json.array!(@micropots) do |micropot|
json.extract! micropot, :id, :content, :user_id
json.url micropot_url(micropot, format: :json)
end
|
#
# Cookbook Name:: ruby_lwrp
# Provider:: install
#
# Copyright 2013, LLC Express 42
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the... |
class ChangeCourseTeacherIdFromCourseSurveys < ActiveRecord::Migration
def change
remove_column :course_surveys, :course_teacher_id
add_column :course_surveys, :course_id, :integer
add_column :course_surveys, :teacher_user_id, :integer
add_column :course_surveys, :semester_value, :string
end
end
|
module WatirCss
module Locators
class Element
class SelectorBuilder
class CSS
def build(selectors)
return unless use_css?(selectors)
if selectors.empty?
css = '*'
else
css = ''
css << (selectors.delete(:tag_nam... |
class Api::V1::ApiController < ApplicationController
protect_from_forgery with: :null_session
skip_before_action :authenticate_user!
before_action :authenticate_client!
def authenticate_client!
unauthorized! unless access_token && valid_access_token?
end
private
def access_token
if request.heade... |
class Transport < ActiveRecord::Base
# belongs_to :user
# belongs_to :route
attr_accessor :common_route, :admission_form
belongs_to :academic_year
belongs_to :vehicle
belongs_to :receiver, :polymorphic=>true
belongs_to :pickup_route, :class_name => "Route", :foreign_key => :pickup_route_id
belongs... |
module ImportPage
module ApplicationHelper
include BootstrapFlashHelper
def import_page_result_messages(results = '')
results = ActiveSupport::JSON.decode(results)
if results.blank?
return content_tag(:div, t('.has_no_messages'))
end
results.map do |result|
html = ''
... |
require 'rails_helper'
RSpec.describe ProductsController, type: :controller do
let(:user) { create(:user, status: :normal) }
let(:old_time) { Time.zone.local(2016, 12, 6, 15, 30, 45) }
let!(:product) { create(:product, slug: 'my-product') }
let!(:pp_product) { create(:product, slug: 'fifteen-chars-s') }
let!... |
class AddMedusaFields < ActiveRecord::Migration[5.2]
def change
add_column :collections, :contact_email, :string
add_column :collections, :medusa_id, :integer, null: false
add_index :collections, :medusa_id, unique: true
end
end
|
class Category < ApplicationRecord
has_many :boxer_pallet_companions
end
|
class Vote < ApplicationRecord
belongs_to :user
belongs_to :voteables, polymorphic: true
end
|
class CoursesController < ApplicationController
def create
@teacher = current_user
@school = @teacher.school
@course = Course.create(name: params[:course][:name], school_id: @school.id)
if @course.save
flash[:notice] = "#{@course.name} successfully added!"
redirect_to(:back)
else
... |
FactoryBot.define do
factory :plant, class: Inventory::Plant do
modifier { build(:user) }
cultivation_batch { build(:batch) }
facility_strain { build(:facility_strain) }
plant_id { Faker::Code.nric }
location_id { BSON::ObjectId.new }
trait :mother do
current_growth_stage { Constants::C... |
require 'test_helper'
class PasswordResetsControllerTest < ActionDispatch::IntegrationTest
setup do
@user = users(:john)
@user.create_reset_digest
end
test 'should not get new if logged in' do
log_in_as @user
get new_password_reset_path
assert_response :redirect
assert_redirected_to root... |
# encoding: utf-8
require "fileutils"
require "rb.rotate/storage"
require "rb.rotate/directory"
require "rb.rotate/configuration"
module RbRotate
##
# Represents one log file.
#
class File
##
# Holds parent file directory.
#
@directory
... |
module Amazon
module Iap2
module Exceptions
class Exception < Exception; end
class EmptyResponse < Amazon::Iap2::Exceptions::Exception; end
class InvalidTransaction < Amazon::Iap2::Exceptions::Exception; end
class InvalidSharedSecret < Amazon::Iap2::Exceptions::Exception; end
class I... |
require 'spec_helper'
describe 'Market Researches API V2', type: :request do
include_context 'V2 headers'
include_context 'MarketResearch data'
let(:search_path) { '/v2/market_research_library/search' }
let(:expected_results) { JSON.parse open("#{File.dirname(__FILE__)}/expected_results.json").read }
descr... |
# == Schema Information
#
# Table name: users
#
# artist_rating :float default(0.0)
# commissioner_rating :float default(0.0)
# confirmation_sent_at :datetime
# confirmation_token :string
# confirmed_at :datetime
# created_at :datetim... |
class AddTitleToLessons < ActiveRecord::Migration[5.0]
def change
add_column :lessons, :title, :string
end
end
|
module OpenXml
module DrawingML
module Elements
class GraphicData < OpenXml::Docx::Elements::Container
namespace :a
attribute :uri, expects: :string
end
end
end
end
|
module Naf
class NafBase < ::Naf.model_class
self.abstract_class = true
def self.full_table_name_prefix
return "#{::Naf.schema_name}."
end
end
end
|
class Tools < ActiveRecord::Migration
def self.up
#tools
create_table :tools, :force => true do |t|
t.column :partnumber, :string, :null => false
t.column :description, :string, :null => false
t.column :serialnumber, :string, :null => false
t.column :labnumber, :string, :null => ... |
# frozen_string_literal: true
module StatisticCalcs
module HypothesisTest
module Errorable
attr_accessor :alpha, :confidence_level, :beta, :test_power
# Alpha usually is 0.05 so confidence level usually 0.95
def init!
set_alpha
set_beta
end
def validate!
ra... |
class CreateSports < ActiveRecord::Migration[5.1]
def change
create_table :sports do |t|
t.text :day
t.text :title
t.text :part
t.text :weight
t.text :exercise
t.text :time
t.timestamps
end
end
end
|
module SpyFu
module Requests
class CoreApi
def self.get_term_metrics_us(parameters)
SpyFu::Request.new('/apis/core_api/get_term_metrics_us', %i(term), parameters).send_request
end
def self.get_term_metrics_uk(parameters)
SpyFu::Request.new('/apis/core_api/get_term_metrics_uk', %... |
require 'csv'
class WeighInTanitaUpload
include ActiveModel::Model
attr_reader :file, :records
def initialize(file)
@file = file
end
def save
# review this to make a bulk insert (INSERT INTO X VALUES (x,y,z),(p,l,m))
# if the turns out that one inserts lots of records using this feature
# ... |
# encoding: UTF-8
#
# hermeneutics/addrs.rb -- Extract addresses out of a string
#
=begin rdoc
:section: Classes definied here
Hermeneutics::Addr is a single address
Hermeneutics::AddrList is a list of addresses in mail header fields.
= Remark
In my opinion, RFC 2822 allows too much features for address
... |
# We have customised the `gem` provider for the `package` type which
# installs gems into the system Ruby and ignore the rbenv environment that
# we run Puppet from.
#
# This check makes people use that customised provider, called `system_gem`,
# instead of the stock one which won't behave how they intend.
#
# We don't... |
class BuyInformation
include ActiveModel::Model
attr_accessor :postnumber, :telephonenumber, :area_id, :area_town, :area_street, :building_name, :item_id, :user_id, :token
with_options presence: true do
validates :area_town
validates :area_street
validates :token
end
with_options presence: true,... |
class Actor < ActiveRecord::Base
has_many :parts
has_many :movies, through: :parts
end
|
#
# Specifying rufus-tokyo
#
# Sun Feb 8 15:02:08 JST 2009
#
require File.dirname(__FILE__) + '/spec_base'
require File.dirname(__FILE__) + '/shared_abstract_spec'
require 'rufus/tokyo'
FileUtils.mkdir('tmp') rescue nil
describe 'a missing Rufus::Tokyo::Cabinet' do
it 'should raise an error when opening in re... |
# -*- encoding : utf-8 -*-
require 'test_helper'
class DissertationRepresentsControllerTest < ActionController::TestCase
setup do
@dissertation_represent = dissertation_represents(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:disserta... |
class Style < ActiveRecord::Base
belongs_to :user
has_many :step_styles
has_many :steps, through: :step_styles
has_many :videos, through: :steps
validates :name, presence: true
end
|
class Holiday < ActiveRecord::Base
belongs_to :country
default_scope { order(:date) }
validates :name, presence: true
validates :date, presence: true
end
|
Constellation::Application.routes.draw do
devise_for :users
# Resources
resources :views
resources :log_entries
resources :users
# Point the home page to /views
root :to => "welcome#index"
end
|
class Schedule < ActiveRecord::Base
belongs_to :category
has_many :events
validates :name, presence: true, length: { maximum: 100 }, uniqueness: {scope: :category,
message: "Should be one per Category"}
validates :category, presence: true
validates :date, presence: true
validate ... |
class ContestEvaluation
def initialize(contest)
@contest = contest
@contestants = contest.battlepets
end
# Evaluates set of pets with pet names as least or most experienced,
# dependent on the `by` argument
def evaluate_experience(pet_subset, by = 'least')
experienced = compare_experience(pet_sub... |
require "hello_tama/version"
module HelloTama
class Error < StandardError; end
def self.greets
puts 'Hello, Tama!'
end
end
|
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :user do
password 'hogehoge'
sequence(:email) { |n| "hoge#{n}@example.com" }
sequence(:name) { |n| "user_#{n}" }
sequence(:login_id) { |n| "user_#{n}" }
end
end
|
class CreateRestaurantFoods < ActiveRecord::Migration
def change
create_table :restaurant_foods do |t|
t.references :food, index: true
t.references :restaurant, index: true
t.timestamps null: false
end
add_foreign_key :restaurant_foods, :foods
add_foreign_key :restaurant_foods, :res... |
class Item
def initialize
@title = "Sample title"
@subtitle = "Sample subtitle"
@icon = nil
@forms = nil
@readmode = nil
@fixture = nil
@isLastItem = nil
@redirect = nil
end
def setTitle (title)
@title = title
end
... |
Rails.application.routes.draw do
devise_for :users
#get 'users/index'
#get 'users/destroy'
resources :student_subjects
resources :students
resources :book_subjects
resources :books
resources :subject_teachers
resources :subjects
resources :teachers
root 'users#index'
# For details on the DSL av... |
class AddsCurrentStatusToRentals < ActiveRecord::Migration[5.0]
def change
add_column :rentals, :is_current, :boolean
remove_column :rentals, :checkout_date, :string
end
end
|
FactoryBot.define do
factory :freight do
state { "SP" }
weight_min { 261.0 }
weight_max { 270.0 }
cost { 1345.91 }
end
end |
# encoding: utf-8
require 'forwardable'
require 'dcc/git'
require 'dcc/logger'
require 'net/https'
require 'json'
require_relative 'dependency'
class Project < ActiveRecord::Base
include DCC::Logger
has_many :builds, :dependent => :destroy
has_many :dependencies, :dependent => :destroy
validate :must_have_na... |
class ProductController < ApplicationController
def show
@product = Product.all
end
end |
# typed: false
# frozen_string_literal: true
class LlvmOriginal < Formula
homepage "http://www.cr.ie.u-ryukyu.ac.jp"
url "http://www.cr.ie.u-ryukyu.ac.jp/hg/CbC/LLVM_original", using: :hg
version "llvm3.8"
bottle do
root_url "http://www.ie.u-ryukyu.ac.jp/brew"
sha256 cellar: :any_skip_relocation, el_c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.