Skip to content

Commit

Permalink
moving rules and groups files to the shared folder
Browse files Browse the repository at this point in the history
  • Loading branch information
maysam committed Jun 18, 2016
1 parent ad17c9f commit 18bc4e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jobs/sync_groups.rb
Expand Up @@ -5,7 +5,7 @@ class SyncGroups < Jobs::Scheduled

def execute(args)
puts "syncing groups to groups.json"
File.open("groups.json", 'w') { |file| p file; file.write JSON.pretty_generate Group.pluck(:id, :name) }
File.open("public/uploads/groups.json", 'w') { |file| p file; file.write JSON.pretty_generate Group.pluck(:id, :name) }
end
end
end
2 changes: 1 addition & 1 deletion plugin.rb
Expand Up @@ -41,7 +41,7 @@ def subscribe

_rule = nil

rules = YAML.load_file "rules.yml"
rules = YAML.load_file "public/uploads/rules.yml"
rules.each do |rule_part|
rule = rule_part.last
if rule['token'] == token or rule['token'] == "all"
Expand Down

0 comments on commit 18bc4e3

Please sign in to comment.