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
{ | |
"barcode": "", | |
"category_name": "Top screen", | |
"unit": "", | |
"cost": "0", | |
"cost_netto": "0", | |
"fiscal": "0", | |
"hidden": "0", | |
"menu_category_id": "0", | |
"workshop": "0", |
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
require_gcc | |
install_package "ruby-2.0.0-p648" "http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p648.tar.gz" |
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
require 'spec_helper' | |
require 'rake' | |
describe 'Admins Rake task' do | |
let(:rake) { Rake::Application.new } | |
context 'adding and listing admins' do | |
before(:each) do | |
Rake.application = rake | |
load Rails.root + 'lib/tasks/admins.rake' |
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
map.company_profile 'company/:company_name', :controller => 'users', :action => 'company_profile', :requirements => {:company_name => /.*/} | |
# Enable dot in :company_name param |
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 Credit < ActiveRecord::Base | |
belongs_to :user | |
attr_accessible :is_unlimited? | |
def is_unlimited? | |
self.user.subscription ? ((self.user.subscription.plan.id == 4) ? true : false) : false | |
end | |
# rewrite standart method |