Skip to content

Commit

Permalink
Merge pull request #330 from batter/allow_all_assets_rake_tasks
Browse files Browse the repository at this point in the history
Allow all rake tasks with the 'assets' prefix to execute without config sanity check
  • Loading branch information
wldcordeiro committed Apr 6, 2015
2 parents 0f144a4 + 04d0dfd commit 5d9d558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rolify/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def remove_role_if_empty
private

def sanity_check(role_cnames)
return true if "assets:precompile"==ARGV[0]
return true if (ARGV[0] =~ /assets:/) == 0

role_cnames = [ "Role" ] if role_cnames.empty?
role_cnames.each do |role_cname|
Expand Down

0 comments on commit 5d9d558

Please sign in to comment.